|
LoveBrains
1.0.0
|
Define the abstract class that allow to be an observer. More...
#include <a_observer.h>
Public Types | |
| enum | States { NONE, QUIT, REPORT, NONE, QUIT, REPORT } |
| enum | States { NONE, QUIT, REPORT, NONE, QUIT, REPORT } |
Public Member Functions | |
| unsigned int | id (void) const |
| Return the ID of the observer. More... | |
| States const & | getState (void) const |
| Return the state of the observer. More... | |
| void | Update (States state) |
| Update the observer. More... | |
| unsigned int | id (void) const |
| States const & | getState (void) const |
| void | Update (States state) |
Protected Member Functions | |
| void | setId (void) |
| Set the ID of the observer. | |
| void | setId (void) |
Protected Attributes | |
| States | _state |
Define the abstract class that allow to be an observer.
| AObserver::States const & GA::AObserver::getState | ( | void | ) | const |
Return the state of the observer.
| unsigned int GA::AObserver::id | ( | void | ) | const |
Return the ID of the observer.
| void GA::AObserver::Update | ( | AObserver::States | state | ) |
Update the observer.
| state | : Contains the new state. |
|
protected |
Contains the current state
1.8.10