Public Member Functions

ai::readwrite_context Class Reference

#include <contexts.hpp>

Inheritance diagram for ai::readwrite_context:
Inheritance graph
[legend]
Collaboration diagram for ai::readwrite_context:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 readwrite_context ()
virtual ~readwrite_context ()
virtual readwrite_contextget_readwrite_context ()=0
virtual attack_result_ptr execute_attack_action (const map_location &attacker_loc, const map_location &defender_loc, int attacker_weapon)=0
virtual move_result_ptr execute_move_action (const map_location &from, const map_location &to, bool remove_movement=true)=0
virtual recall_result_ptr execute_recall_action (const std::string &id, const map_location &where=map_location::null_location, const map_location &from=map_location::null_location)=0
virtual recruit_result_ptr execute_recruit_action (const std::string &unit_name, const map_location &where=map_location::null_location, const map_location &from=map_location::null_location)=0
virtual stopunit_result_ptr execute_stopunit_action (const map_location &unit_location, bool remove_movement=true, bool remove_attacks=false)=0
virtual teamcurrent_team_w ()=0
virtual void raise_gamestate_changed () const =0
virtual game_infoget_info_w ()=0
virtual config to_readwrite_context_config () const =0
 serialize this context to config

Detailed Description

Definition at line 397 of file contexts.hpp.


Constructor & Destructor Documentation

ai::readwrite_context::readwrite_context (  )  [inline]

Definition at line 399 of file contexts.hpp.

virtual ai::readwrite_context::~readwrite_context (  )  [inline, virtual]

Definition at line 402 of file contexts.hpp.


Member Function Documentation

virtual team& ai::readwrite_context::current_team_w (  )  [pure virtual]

Implemented in ai::readwrite_context_impl.

Referenced by ai::readwrite_context_proxy::current_team_w().

Here is the caller graph for this function:

virtual attack_result_ptr ai::readwrite_context::execute_attack_action ( const map_location attacker_loc,
const map_location defender_loc,
int  attacker_weapon 
) [pure virtual]

Implemented in ai::readwrite_context_impl.

Referenced by ai::readwrite_context_proxy::execute_attack_action(), and ai::formula_ai::execute_variant().

Here is the caller graph for this function:

virtual move_result_ptr ai::readwrite_context::execute_move_action ( const map_location from,
const map_location to,
bool  remove_movement = true 
) [pure virtual]

Implemented in ai::readwrite_context_impl.

Referenced by ai::readwrite_context_proxy::execute_move_action(), and ai::formula_ai::execute_variant().

Here is the caller graph for this function:

virtual recall_result_ptr ai::readwrite_context::execute_recall_action ( const std::string &  id,
const map_location where = map_location::null_location,
const map_location from = map_location::null_location 
) [pure virtual]

Implemented in ai::readwrite_context_impl.

Referenced by ai::readwrite_context_proxy::execute_recall_action().

Here is the caller graph for this function:

virtual recruit_result_ptr ai::readwrite_context::execute_recruit_action ( const std::string &  unit_name,
const map_location where = map_location::null_location,
const map_location from = map_location::null_location 
) [pure virtual]

Implemented in ai::readwrite_context_impl.

Referenced by ai::readwrite_context_proxy::execute_recruit_action().

Here is the caller graph for this function:

virtual stopunit_result_ptr ai::readwrite_context::execute_stopunit_action ( const map_location unit_location,
bool  remove_movement = true,
bool  remove_attacks = false 
) [pure virtual]

Implemented in ai::readwrite_context_impl.

Referenced by ai::readwrite_context_proxy::execute_stopunit_action().

Here is the caller graph for this function:

virtual game_info& ai::readwrite_context::get_info_w (  )  [pure virtual]

Implemented in ai::readwrite_context_impl.

Referenced by ai::readwrite_context_proxy::get_info_w().

Here is the caller graph for this function:

virtual readwrite_context& ai::readwrite_context::get_readwrite_context (  )  [pure virtual]
virtual void ai::readwrite_context::raise_gamestate_changed (  )  const [pure virtual]

Implemented in ai::readwrite_context_impl.

Referenced by ai::readwrite_context_proxy::raise_gamestate_changed().

Here is the caller graph for this function:

virtual config ai::readwrite_context::to_readwrite_context_config (  )  const [pure virtual]

serialize this context to config

Implemented in ai::readwrite_context_impl.

Referenced by ai::readwrite_context_proxy::to_readwrite_context_config().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:41 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs