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

Helper functions for the object which operates in the context of AI for specific side this is part of AI interface. More...

#include "ai/game_info.hpp"
#include "global.hpp"
#include "config.hpp"
#include "game_errors.hpp"
#include "generic_event.hpp"
#include "units/ptr.hpp"
#include "map/location.hpp"
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for contexts.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

singleton  ai::typesafe_aspect< T >
 
singleton  boost::shared_ptr< T >
 
class  ai::recursion_counter
 
struct  ai::defensive_position
 
class  ai::keeps_cache
 
class  ai::side_context
 
class  ai::readonly_context
 
class  ai::readwrite_context
 
class  ai::side_context_proxy
 
class  ai::readonly_context_proxy
 
class  ai::readwrite_context_proxy
 
class  ai::side_context_impl
 
class  ai::readonly_context_impl
 
class  ai::readwrite_context_impl
 

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.
 
 boost
 
 pathfind
 

Typedefs

typedef ai_context * ai::ai_context_ptr
 

Detailed Description

Helper functions for the object which operates in the context of AI for specific side this is part of AI interface.

Definition in file contexts.hpp.