Managing the AI-Game interaction - AI actions and their results. More...
#include "ai/actions.hpp"#include "ai/manager.hpp"#include "ai/simulated_actions.hpp"#include "actions/attack.hpp"#include "actions/create.hpp"#include "attack_prediction.hpp"#include "game_preferences.hpp"#include "log.hpp"#include "mouse_handler_base.hpp"#include "pathfind/teleport.hpp"#include "play_controller.hpp"#include "playsingle_controller.hpp"#include "recall_list_manager.hpp"#include "replay_helper.hpp"#include "resources.hpp"#include "synced_context.hpp"#include "team.hpp"#include "units/unit.hpp"#include "units/ptr.hpp"#include "whiteboard/manager.hpp"
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. | |
Macros | |
| #define | DBG_AI_ACTIONS LOG_STREAM(debug, log_ai_actions) |
| #define | LOG_AI_ACTIONS LOG_STREAM(info, log_ai_actions) |
| #define | WRN_AI_ACTIONS LOG_STREAM(warn, log_ai_actions) |
| #define | ERR_AI_ACTIONS LOG_STREAM(err, log_ai_actions) |
Functions | |
| void | ai::sim_gamestate_changed (action_result *result, bool gamestate_changed) |
| 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) |
Variables | |
| static lg::log_domain | ai::log_ai_actions ("ai/actions") |
Managing the AI-Game interaction - AI actions and their results.
Definition in file actions.cpp.
| #define DBG_AI_ACTIONS LOG_STREAM(debug, log_ai_actions) |
Definition at line 60 of file actions.cpp.
Referenced by ai::attack_result::do_execute(), ai::move_result::do_execute(), ai::recall_result::do_execute(), ai::recruit_result::do_execute(), ai::stopunit_result::do_execute(), ai::synced_command_result::do_execute(), and ai::action_result::execute().
| #define ERR_AI_ACTIONS LOG_STREAM(err, log_ai_actions) |
Definition at line 63 of file actions.cpp.
Referenced by ai::actions::get_error_name(), ai::action_result::set_error(), and ai::action_result::~action_result().
| #define LOG_AI_ACTIONS LOG_STREAM(info, log_ai_actions) |
Definition at line 61 of file actions.cpp.
Referenced by ai::attack_result::do_check_before(), ai::move_result::do_check_before(), ai::recall_result::do_check_before(), ai::recruit_result::do_check_before(), ai::stopunit_result::do_check_before(), ai::synced_command_result::do_check_before(), ai::attack_result::do_execute(), ai::move_result::do_execute(), ai::recall_result::do_execute(), ai::recruit_result::do_execute(), ai::stopunit_result::do_execute(), ai::synced_command_result::do_execute(), and ai::action_result::set_error().
| #define WRN_AI_ACTIONS LOG_STREAM(warn, log_ai_actions) |
Definition at line 62 of file actions.cpp.
| std::ostream& operator<< | ( | std::ostream & | s, |
| ai::attack_result const & | r | ||
| ) |
Definition at line 1127 of file actions.cpp.
References ai::attack_result::do_describe().
| std::ostream& operator<< | ( | std::ostream & | s, |
| ai::move_result const & | r | ||
| ) |
Definition at line 1132 of file actions.cpp.
References ai::move_result::do_describe().
| std::ostream& operator<< | ( | std::ostream & | s, |
| ai::recall_result const & | r | ||
| ) |
Definition at line 1137 of file actions.cpp.
References ai::recall_result::do_describe().
| std::ostream& operator<< | ( | std::ostream & | s, |
| ai::recruit_result const & | r | ||
| ) |
Definition at line 1142 of file actions.cpp.
References ai::recruit_result::do_describe().
| std::ostream& operator<< | ( | std::ostream & | s, |
| ai::stopunit_result const & | r | ||
| ) |
Definition at line 1147 of file actions.cpp.
References ai::stopunit_result::do_describe().
| std::ostream& operator<< | ( | std::ostream & | s, |
| ai::synced_command_result const & | r | ||
| ) |
Definition at line 1152 of file actions.cpp.
References ai::synced_command_result::do_describe().
1.8.8