LoveBrains  1.0.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GA::AObserver Class Reference

Define the abstract class that allow to be an observer. More...

#include <a_observer.h>

Inheritance diagram for GA::AObserver:
GA::GAEngine GA::GAEngine

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
 

Detailed Description

Define the abstract class that allow to be an observer.

Member Function Documentation

AObserver::States const & GA::AObserver::getState ( void  ) const

Return the state of the observer.

Returns
AObserver::States const&
unsigned int GA::AObserver::id ( void  ) const

Return the ID of the observer.

Returns
unsigned int
void GA::AObserver::Update ( AObserver::States  state)

Update the observer.

Parameters
state: Contains the new state.

Member Data Documentation

States GA::AObserver::_state
protected

Contains the current state


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