Public Member Functions | Private Attributes

ai::readwrite_context_proxy Class Reference

#include <contexts.hpp>

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

List of all members.

Public Member Functions

 readwrite_context_proxy ()
void init_readwrite_context_proxy (readwrite_context &target)
virtual readwrite_contextget_readwrite_context ()
virtual attack_result_ptr execute_attack_action (const map_location &attacker_loc, const map_location &defender_loc, int attacker_weapon)
virtual move_result_ptr execute_move_action (const map_location &from, const map_location &to, bool remove_movement=true)
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)
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)
virtual stopunit_result_ptr execute_stopunit_action (const map_location &unit_location, bool remove_movement=true, bool remove_attacks=false)
virtual teamcurrent_team_w ()
virtual void raise_gamestate_changed () const
virtual game_infoget_info_w ()
virtual int get_recursion_count () const
 Get the value of the recursion counter.
virtual config to_readwrite_context_config () const

Private Attributes

readwrite_contexttarget_

Detailed Description

Definition at line 960 of file contexts.hpp.


Constructor & Destructor Documentation

ai::readwrite_context_proxy::readwrite_context_proxy (  )  [inline]

Definition at line 962 of file contexts.hpp.


Member Function Documentation

virtual team& ai::readwrite_context_proxy::current_team_w (  )  [inline, virtual]

Definition at line 1011 of file contexts.hpp.

References ai::readwrite_context::current_team_w(), and target_.

Here is the call graph for this function:

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

Definition at line 981 of file contexts.hpp.

References ai::readwrite_context::execute_attack_action(), and target_.

Here is the call graph for this function:

virtual move_result_ptr ai::readwrite_context_proxy::execute_move_action ( const map_location from,
const map_location to,
bool  remove_movement = true 
) [inline, virtual]
virtual recall_result_ptr ai::readwrite_context_proxy::execute_recall_action ( const std::string &  id,
const map_location where = map_location::null_location,
const map_location from = map_location::null_location 
) [inline, virtual]

Definition at line 993 of file contexts.hpp.

References ai::readwrite_context::execute_recall_action(), and target_.

Here is the call graph for this function:

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

Definition at line 999 of file contexts.hpp.

References ai::readwrite_context::execute_recruit_action(), and target_.

Referenced by ai::testing_ai_default::recruitment_phase::recruit_usage().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1005 of file contexts.hpp.

References ai::readwrite_context::execute_stopunit_action(), and target_.

Here is the call graph for this function:

virtual game_info& ai::readwrite_context_proxy::get_info_w (  )  [inline, virtual]

Definition at line 1023 of file contexts.hpp.

References ai::readwrite_context::get_info_w(), and target_.

Here is the call graph for this function:

virtual readwrite_context& ai::readwrite_context_proxy::get_readwrite_context (  )  [inline, virtual]

Definition at line 975 of file contexts.hpp.

References ai::readwrite_context::get_readwrite_context(), and target_.

Here is the call graph for this function:

virtual int ai::readwrite_context_proxy::get_recursion_count (  )  const [inline, virtual]

Get the value of the recursion counter.

Reimplemented from ai::readonly_context_proxy.

Definition at line 1029 of file contexts.hpp.

References ai::side_context::get_recursion_count(), and target_.

Here is the call graph for this function:

void ai::readwrite_context_proxy::init_readwrite_context_proxy ( readwrite_context target  )  [inline]
virtual void ai::readwrite_context_proxy::raise_gamestate_changed (  )  const [inline, virtual]

Definition at line 1017 of file contexts.hpp.

References ai::readwrite_context::raise_gamestate_changed(), and target_.

Here is the call graph for this function:

virtual config ai::readwrite_context_proxy::to_readwrite_context_config (  )  const [inline, virtual]

Definition at line 1035 of file contexts.hpp.

References target_, and ai::readwrite_context::to_readwrite_context_config().

Here is the call graph for this function:


Member Data Documentation


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:51 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs