Public Types | Public Member Functions | Private Member Functions | Private Attributes

game_logic::attack_map_callable Class Reference

#include <callable_objects.hpp>

Inheritance diagram for game_logic::attack_map_callable:
Inheritance graph
[legend]
Collaboration diagram for game_logic::attack_map_callable:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::multimap
< map_location, map_location
move_map

Public Member Functions

 attack_map_callable (const ai::formula_ai &ai, const move_map &srcdst, const unit_map &units)

Private Member Functions

variant get_value (const std::string &key) const
void get_inputs (std::vector< game_logic::formula_input > *inputs) const
void collect_possible_attacks (std::vector< variant > &vars, map_location attacker_location, map_location attack_position) const

Private Attributes

const move_mapsrcdst_
const unit_mapunits_
const ai::formula_aiai_

Detailed Description

Definition at line 30 of file callable_objects.hpp.


Member Typedef Documentation

Definition at line 32 of file callable_objects.hpp.


Constructor & Destructor Documentation

game_logic::attack_map_callable::attack_map_callable ( const ai::formula_ai ai,
const move_map srcdst,
const unit_map units 
) [inline]

Definition at line 33 of file callable_objects.hpp.


Member Function Documentation

void game_logic::attack_map_callable::collect_possible_attacks ( std::vector< variant > &  vars,
map_location  attacker_location,
map_location  attack_position 
) const [private]

Definition at line 197 of file callable_objects.cpp.

References ai_, ai::readonly_context_proxy::current_team(), unit_map::end(), unit_map::find(), resources::game_map, get_adjacent_tiles(), team::is_enemy(), and units_.

Referenced by get_value().

Here is the call graph for this function:

Here is the caller graph for this function:

void game_logic::attack_map_callable::get_inputs ( std::vector< game_logic::formula_input > *  inputs  )  const [private, virtual]

Reimplemented from game_logic::formula_callable.

Definition at line 192 of file callable_objects.cpp.

References game_logic::FORMULA_READ_ONLY.

variant game_logic::attack_map_callable::get_value ( const std::string &  key  )  const [private, virtual]

Member Data Documentation

Definition at line 39 of file callable_objects.hpp.

Referenced by collect_possible_attacks(), and get_value().

Definition at line 37 of file callable_objects.hpp.

Definition at line 38 of file callable_objects.hpp.

Referenced by collect_possible_attacks(), and get_value().


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

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