The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces
gamestate_observer.cpp File Reference

Base gamestate observer - useful to see if the gamestate has changed between two points of time. More...

#include "ai/manager.hpp"
#include "ai/gamestate_observer.hpp"
Include dependency graph for gamestate_observer.cpp:

Go to the source code of this file.

Namespaces

 ai
 A small explanation about what's going on here: Each action has access to two game_info objects First is 'info' - real information Second is 'subjective info' - AIs perception of what's going on So, when we check_before action, we use 'subjective info' and don't touch real 'info' at all.
 

Detailed Description

Base gamestate observer - useful to see if the gamestate has changed between two points of time.

Definition in file gamestate_observer.cpp.