The Battle for Wesnoth  1.13.10+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::string & lua_code_
 
const map_locationlocation_
 

Additional Inherited Members

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

Detailed Description

Definition at line 296 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 929 of file actions.cpp.

Member Function Documentation

void ai::synced_command_result::do_check_after ( )
protectedvirtual

Implements ai::action_result.

Definition at line 939 of file actions.cpp.

void ai::synced_command_result::do_check_before ( )
protectedvirtual

Implements ai::action_result.

Definition at line 934 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 943 of file actions.cpp.

References ai::action_result::get_side(), and s.

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 982 of file actions.cpp.

Member Data Documentation

const map_location& ai::synced_command_result::location_
private

Definition at line 310 of file actions.hpp.

Referenced by do_execute().

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

Definition at line 309 of file actions.hpp.

Referenced by do_execute().


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