The Battle for Wesnoth  1.19.5+dev
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:

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 293 of file actions.hpp.

Constructor & Destructor Documentation

◆ synced_command_result()

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.

Member Function Documentation

◆ do_check_after()

void ai::synced_command_result::do_check_after ( )
protectedvirtual

Implements ai::action_result.

Definition at line 928 of file actions.cpp.

◆ do_check_before()

void ai::synced_command_result::do_check_before ( )
protectedvirtual

Implements ai::action_result.

Definition at line 923 of file actions.cpp.

References LOG_AI_ACTIONS.

◆ do_describe()

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

Implements ai::action_result.

Definition at line 932 of file actions.cpp.

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

Referenced by operator<<().

◆ do_execute()

void ai::synced_command_result::do_execute ( )
protectedvirtual

◆ do_init_for_execution()

void ai::synced_command_result::do_init_for_execution ( )
protectedvirtual

Implements ai::action_result.

Definition at line 969 of file actions.cpp.

Member Data Documentation

◆ location_

const map_location& ai::synced_command_result::location_
private

Definition at line 307 of file actions.hpp.

Referenced by do_execute().

◆ lua_code_

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

Definition at line 306 of file actions.hpp.

Referenced by do_execute().


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