template<class T>
class sFStateID_c< T >
An implementation of a state ID for a given class.
It adds the ability to call the three state methods on a state owner class.
- Template Parameters
-
T | The class that this state belongs to. |
Definition at line 10 of file s_FStateID.hpp.
|
| sFStateID_c (const char *name, stateFunc initialize, stateFunc execute, stateFunc finalize) |
| Constructs a new sFStateID_c instance.
|
|
virtual bool | isSameName (const char *otherName) const |
| Returns true if the given name matches this state ID's name.
|
|
virtual void | initializeState (T &owner) const |
| Calls the initialize method on the owner.
|
|
virtual void | executeState (T &owner) const |
| Calls the execute method on the owner.
|
|
virtual void | finalizeState (T &owner) const |
| Calls the finalize method on the owner.
|
|
| sStateID_c (const char *name) |
|
virtual bool | isNull () const |
| Returns whether this is a null state.
|
|
virtual bool | isEqual (const sStateIDIf_c &other) const |
| Returns whether both states have the same number.
|
|
virtual bool | operator== (const sStateIDIf_c &other) const |
| Overloaded equality operator, using isEqual.
|
|
virtual bool | operator!= (const sStateIDIf_c &other) const |
| Overloaded inequality operator, using isEqual.
|
|
virtual bool | isSameName (const char *name) const |
| Returns whether this state ID is called name .
|
|
virtual const char * | name () const |
| Returns the name of this state ID.
|
|
virtual unsigned int | number () const |
| Returns the number of this state ID.
|
|
virtual bool | isNull () const =0 |
| Returns whether this is a null state.
|
|
virtual bool | isEqual (const sStateIDIf_c &other) const =0 |
| Returns whether both states have the same number.
|
|
virtual bool | operator== (const sStateIDIf_c &other) const =0 |
| Overloaded equality operator, using isEqual.
|
|
virtual bool | operator!= (const sStateIDIf_c &other) const =0 |
| Overloaded inequality operator, using isEqual.
|
|
virtual bool | isSameName (const char *name) const =0 |
| Returns whether this state ID is called name .
|
|
virtual const char * | name () const =0 |
| Returns the name of this state ID.
|
|
virtual unsigned int | number () const =0 |
| Returns the number of this state ID.
|
|