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

Managing the AI-Game interaction - AI actions and their results. More...

#include "ai/game_info.hpp"
#include "actions/move.hpp"
#include "ai/lua/aspect_advancements.hpp"
#include "units/ptr.hpp"
Include dependency graph for actions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ai::action_result
 
class  ai::attack_result
 
class  ai::move_result
 
class  ai::recall_result
 
class  ai::recruit_result
 
class  ai::stopunit_result
 
class  ai::synced_command_result
 
class  ai::actions
 

Namespaces

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

Functions

std::ostream & operator<< (std::ostream &s, ai::attack_result const &r)
 
std::ostream & operator<< (std::ostream &s, ai::move_result const &r)
 
std::ostream & operator<< (std::ostream &s, ai::recall_result const &r)
 
std::ostream & operator<< (std::ostream &s, ai::recruit_result const &r)
 
std::ostream & operator<< (std::ostream &s, ai::stopunit_result const &r)
 
std::ostream & operator<< (std::ostream &s, ai::synced_command_result const &r)
 

Detailed Description

Managing the AI-Game interaction - AI actions and their results.

Definition in file actions.hpp.

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
ai::attack_result const &  r 
)

Definition at line 1124 of file actions.cpp.

References ai::attack_result::do_describe(), and s.

std::ostream& operator<< ( std::ostream &  s,
ai::move_result const &  r 
)

Definition at line 1129 of file actions.cpp.

References ai::move_result::do_describe(), and s.

std::ostream& operator<< ( std::ostream &  s,
ai::recall_result const &  r 
)

Definition at line 1134 of file actions.cpp.

References ai::recall_result::do_describe(), and s.

std::ostream& operator<< ( std::ostream &  s,
ai::recruit_result const &  r 
)

Definition at line 1139 of file actions.cpp.

References ai::recruit_result::do_describe(), and s.

std::ostream& operator<< ( std::ostream &  s,
ai::stopunit_result const &  r 
)

Definition at line 1144 of file actions.cpp.

References ai::stopunit_result::do_describe(), and s.

std::ostream& operator<< ( std::ostream &  s,
ai::synced_command_result const &  r 
)

Definition at line 1149 of file actions.cpp.

References ai::synced_command_result::do_describe(), and s.