The Battle for Wesnoth  1.19.0-dev
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 "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, const ai::attack_result &r)
 
std::ostream & operator<< (std::ostream &s, const ai::move_result &r)
 
std::ostream & operator<< (std::ostream &s, const ai::recall_result &r)
 
std::ostream & operator<< (std::ostream &s, const ai::recruit_result &r)
 
std::ostream & operator<< (std::ostream &s, const ai::stopunit_result &r)
 
std::ostream & operator<< (std::ostream &s, const ai::synced_command_result &r)
 

Detailed Description

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

Definition in file actions.hpp.

Function Documentation

◆ operator<<() [1/6]

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

Definition at line 1132 of file actions.cpp.

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

Referenced by std::operator<<().

◆ operator<<() [2/6]

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

Definition at line 1137 of file actions.cpp.

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

◆ operator<<() [3/6]

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

Definition at line 1142 of file actions.cpp.

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

◆ operator<<() [4/6]

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

Definition at line 1147 of file actions.cpp.

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

◆ operator<<() [5/6]

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

Definition at line 1152 of file actions.cpp.

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

◆ operator<<() [6/6]

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

Definition at line 1157 of file actions.cpp.

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