The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ai::synced_command_result Class Reference

#include <actions.hpp>

Inheritance diagram for ai::synced_command_result:
Inheritance graph

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_infoget_info () const
 
teamget_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::stringlua_code_
 
const map_locationlocation_
 

Additional Inherited Members

- Public Types inherited from ai::action_result
enum  tresult { AI_ACTION_SUCCESS = 0, AI_ACTION_STARTED = 1, AI_ACTION_FAILURE = -1 }
 

Detailed Description

Definition at line 297 of file actions.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

void ai::synced_command_result::do_check_after ( )
protectedvirtual

Implements ai::action_result.

Definition at line 942 of file actions.cpp.

void ai::synced_command_result::do_check_before ( )
protectedvirtual

Implements ai::action_result.

Definition at line 937 of file actions.cpp.

References LOG_AI_ACTIONS.

std::string ai::synced_command_result::do_describe ( ) const
virtual

Implements ai::action_result.

Definition at line 946 of file actions.cpp.

References ai::action_result::get_side().

Referenced by operator<<().

void ai::synced_command_result::do_execute ( )
protectedvirtual
void ai::synced_command_result::do_init_for_execution ( )
protectedvirtual

Implements ai::action_result.

Definition at line 985 of file actions.cpp.

Member Data Documentation

const map_location& ai::synced_command_result::location_
private

Definition at line 311 of file actions.hpp.

Referenced by do_execute().

const std::string& ai::synced_command_result::lua_code_
private

Definition at line 310 of file actions.hpp.

Referenced by do_execute().


The documentation for this class was generated from the following files: