00001 #ifndef HEADER_PHASELOCKER_H 00002 #define HEADER_PHASELOCKER_H 00003 00004 /** 00005 * Lock game for anim phases. 00006 */ 00007 class PhaseLocker { 00008 private: 00009 int m_lockPhases; 00010 public: 00011 PhaseLocker(); 00012 void reset() { m_lockPhases = 0; } 00013 int getLocked() const { return m_lockPhases; } 00014 void decLock(); 00015 void ensurePhases(int count); 00016 }; 00017 00018 #endif