Public Types | Public Member Functions | Private Attributes

unit_callable Class Reference

#include <callable_objects.hpp>

Inheritance diagram for unit_callable:
Inheritance graph
[legend]
Collaboration diagram for unit_callable:
Collaboration graph
[legend]

List of all members.

Public Types

typedef map_location location

Public Member Functions

 unit_callable (const std::pair< location, unit > &pair)
 unit_callable (const unit &u)
const unitget_unit () const
const locationget_location () const
variant get_value (const std::string &key) const
void get_inputs (std::vector< game_logic::formula_input > *inputs) const
int do_compare (const formula_callable *callable) const

Private Attributes

const locationloc_
const unitu_

Detailed Description

Definition at line 144 of file callable_objects.hpp.


Member Typedef Documentation

Definition at line 146 of file callable_objects.hpp.


Constructor & Destructor Documentation

unit_callable::unit_callable ( const std::pair< location, unit > &  pair  )  [inline]

Definition at line 147 of file callable_objects.hpp.

References game_logic::formula_callable::type_.

unit_callable::unit_callable ( const unit u  )  [inline]

Definition at line 153 of file callable_objects.hpp.

References game_logic::formula_callable::type_.


Member Function Documentation

int unit_callable::do_compare ( const formula_callable *  callable  )  const

Definition at line 270 of file callable_objects.cpp.

References u_, and unit::underlying_id().

Here is the call graph for this function:

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

Reimplemented from game_logic::formula_callable.

Definition at line 241 of file callable_objects.cpp.

References game_logic::FORMULA_READ_ONLY.

const location& unit_callable::get_location (  )  const [inline]

Definition at line 160 of file callable_objects.hpp.

References loc_.

Referenced by game_logic::attack_candidate_action::evaluate().

Here is the caller graph for this function:

const unit& unit_callable::get_unit (  )  const [inline]

Definition at line 159 of file callable_objects.hpp.

References u_.

variant unit_callable::get_value ( const std::string &  key  )  const [virtual]

Member Data Documentation

const location& unit_callable::loc_ [private]

Definition at line 166 of file callable_objects.hpp.

Referenced by get_location(), and get_value().

const unit& unit_callable::u_ [private]

Definition at line 167 of file callable_objects.hpp.

Referenced by do_compare(), get_unit(), 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:17:29 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs