TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Movement::counter< T, limit > Class Template Reference

#include <MovementTypedefs.h>

Public Member Functions

 counter ()
 
void Increase ()
 
NewId ()
 
getCurrent () const
 

Private Member Functions

void init ()
 

Private Attributes

m_counter
 

Constructor & Destructor Documentation

template<class T , T limit>
Movement::counter< T, limit >::counter ( )
inline
60 { init(); }
void init()
Definition: MovementTypedefs.h:74

+ Here is the call graph for this function:

Member Function Documentation

template<class T , T limit>
T Movement::counter< T, limit >::getCurrent ( ) const
inline
71 { return m_counter; }
T m_counter
Definition: MovementTypedefs.h:75
template<class T , T limit>
void Movement::counter< T, limit >::Increase ( )
inline
63  {
64  if (m_counter == limit)
65  init();
66  else
67  ++m_counter;
68  }
T m_counter
Definition: MovementTypedefs.h:75
void init()
Definition: MovementTypedefs.h:74

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class T , T limit>
void Movement::counter< T, limit >::init ( )
inlineprivate
74 { m_counter = 0; }
T m_counter
Definition: MovementTypedefs.h:75

+ Here is the caller graph for this function:

template<class T , T limit>
T Movement::counter< T, limit >::NewId ( )
inline
70 { Increase(); return m_counter; }
T m_counter
Definition: MovementTypedefs.h:75
void Increase()
Definition: MovementTypedefs.h:62

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

template<class T , T limit>
T Movement::counter< T, limit >::m_counter
private

The documentation for this class was generated from the following file: