Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

PhaseLocker Class Reference


Detailed Description

Lock game for anim phases.

Definition at line 7 of file PhaseLocker.h.

Public Member Functions

 PhaseLocker ()
void reset ()
int getLocked () const
void decLock ()
void ensurePhases (int count)
 Reserve game cycle for blocking animation.


Constructor & Destructor Documentation

PhaseLocker::PhaseLocker  ) 
 

Definition at line 14 of file PhaseLocker.cpp.

00015 {
00016     m_lockPhases = 0;
00017 }


Member Function Documentation

void PhaseLocker::decLock  ) 
 

Definition at line 30 of file PhaseLocker.cpp.

00031 {
00032     if (m_lockPhases > 0) {
00033         m_lockPhases--;
00034     }
00035 }

void PhaseLocker::ensurePhases int  count  ) 
 

Reserve game cycle for blocking animation.

Parameters:
count how much phases we need

Definition at line 24 of file PhaseLocker.cpp.

00025 {
00026     m_lockPhases = max(m_lockPhases, count);
00027 }

int PhaseLocker::getLocked  )  const [inline]
 

Definition at line 13 of file PhaseLocker.h.

00013 { return m_lockPhases; }

void PhaseLocker::reset  )  [inline]
 

Definition at line 12 of file PhaseLocker.h.

00012 { m_lockPhases = 0; }


The documentation for this class was generated from the following files:
Generated on Wed Jun 1 09:56:12 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2