Animations are now optional

The default behaviour is still there though.
This commit is contained in:
Ahmed Samy
2013-12-14 18:48:18 +02:00
parent 4f997a3826
commit eb4fb4ff41
4 changed files with 58 additions and 3 deletions

View File

@@ -93,6 +93,11 @@ enum {
BLOCK_SIZE = 32
};
enum : uint8 {
Animation_Force,
Animation_Show
};
class TileBlock {
public:
TileBlock() { m_tiles.fill(nullptr); }
@@ -195,6 +200,11 @@ public:
bool showZones() { return m_zoneFlags != 0; }
bool showZone(tileflags_t zone) { return (m_zoneFlags & zone) == zone; }
void setForceShowAnimations(bool force);
bool isForcingAnimations();
bool isShowingAnimations();
void setShowAnimations(bool show);
void beginGhostMode(float opacity);
void endGhostMode();
@@ -244,6 +254,7 @@ private:
std::vector<MapViewPtr> m_mapViews;
std::unordered_map<Position, std::string, PositionHasher> m_waypoints;
uint8 m_animationFlags;
uint32 m_zoneFlags;
std::array<Color, TILESTATE_LAST> m_zoneColors;
float m_zoneOpacity;