29 : gamestate_change_counter_(0)
Managing the AIs lifecycle - headers TODO: Refactor history handling and internal commands.
void handle_generic_event(const std::string &event_name)
int gamestate_change_counter_
bool is_gamestate_changed()
Check if the gamestate has changed since last reset reset is done once on construction,...
virtual ~gamestate_observer()
void reset()
Reset the counter of gamestate changes.
void remove_gamestate_observer(events::observer *event_observer)
Removes an observer of game events except ai_user_interact event and ai_sync_network event.
void add_gamestate_observer(events::observer *event_observer)
Adds observer of game events except ai_user_interact event and ai_sync_network event.
static manager & get_singleton()
A helper class to observe the game state.
A small explanation about what's going on here: Each action has access to two game_info objects First...