#include <actions.hpp>
Public Member Functions | |
| synced_command_result (side_number side, const std::string &lua_code, const map_location &location) | |
| virtual std::string | do_describe () const |
Public Member Functions inherited from ai::action_result | |
| virtual | ~action_result () |
| void | check_before () |
| void | execute () |
| bool | is_gamestate_changed () const |
| bool | is_ok () |
| int | get_status () const |
Protected Member Functions | |
| virtual void | do_check_before () |
| virtual void | do_check_after () |
| virtual void | do_execute () |
| virtual void | do_init_for_execution () |
Protected Member Functions inherited from ai::action_result | |
| action_result (side_number side) | |
| bool | is_execution () const |
| int | get_side () const |
| game_info & | get_info () const |
| team & | get_my_team () const |
| void | set_error (int error_code, bool log_as_error=true) |
| bool | is_success () const |
| void | set_gamestate_changed () |
Private Attributes | |
| const std::string & | lua_code_ |
| const map_location & | location_ |
Additional Inherited Members | |
Public Types inherited from ai::action_result | |
| enum | result { AI_ACTION_SUCCESS = 0 , AI_ACTION_STARTED = 1 , AI_ACTION_FAILURE = -1 } |
Definition at line 293 of file actions.hpp.
| ai::synced_command_result::synced_command_result | ( | side_number | side, |
| const std::string & | lua_code, | ||
| const map_location & | location | ||
| ) |
Definition at line 918 of file actions.cpp.
|
protectedvirtual |
Implements ai::action_result.
Definition at line 928 of file actions.cpp.
|
protectedvirtual |
Implements ai::action_result.
Definition at line 923 of file actions.cpp.
References LOG_AI_ACTIONS.
|
virtual |
Implements ai::action_result.
Definition at line 932 of file actions.cpp.
References ai::action_result::get_side(), and s.
Referenced by operator<<().
|
protectedvirtual |
Implements ai::action_result.
Definition at line 941 of file actions.cpp.
References DBG_AI_ACTIONS, ai::manager::get_singleton(), ai::action_result::is_ok(), ai::action_result::is_success(), location_, LOG_AI_ACTIONS, lua_code_, map_location::null_location(), ai::manager::raise_gamestate_changed(), s, ai::action_result::set_gamestate_changed(), ai::action_result::sim_gamestate_changed, ai::simulated_synced_command(), resources::simulation, map_location::wml_x(), and map_location::wml_y().
|
protectedvirtual |
Implements ai::action_result.
Definition at line 969 of file actions.cpp.
|
private |
Definition at line 307 of file actions.hpp.
Referenced by do_execute().
|
private |
Definition at line 306 of file actions.hpp.
Referenced by do_execute().