#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 | tresult { AI_ACTION_SUCCESS = 0, AI_ACTION_STARTED = 1, AI_ACTION_FAILURE = -1 } |
Definition at line 297 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 932 of file actions.cpp.
|
protectedvirtual |
Implements ai::action_result.
Definition at line 942 of file actions.cpp.
|
protectedvirtual |
Implements ai::action_result.
Definition at line 937 of file actions.cpp.
References LOG_AI_ACTIONS.
|
virtual |
Implements ai::action_result.
Definition at line 946 of file actions.cpp.
References ai::action_result::get_side().
Referenced by operator<<().
|
protectedvirtual |
Implements ai::action_result.
Definition at line 955 of file actions.cpp.
References DBG_AI_ACTIONS, replay_helper::get_lua_ai(), 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(), synced_context::run_in_synced_context_if_not_already(), ai::action_result::set_gamestate_changed(), ai::action_result::sim_gamestate_changed, ai::simulated_synced_command(), resources::simulation_, map_location::x, and map_location::y.
|
protectedvirtual |
Implements ai::action_result.
Definition at line 985 of file actions.cpp.
|
private |
Definition at line 311 of file actions.hpp.
Referenced by do_execute().
|
private |
Definition at line 310 of file actions.hpp.
Referenced by do_execute().