location_callable Class Reference

#include <callable_objects.hpp>

Inheritance diagram for location_callable:

Inheritance graph
[legend]
Collaboration diagram for location_callable:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 location_callable (const gamemap::location &loc)
const gamemap::locationloc () const
void serialize_to_string (std::string &str) const

Private Member Functions

variant get_value (const std::string &key) const
void get_inputs (std::vector< game_logic::formula_input > *inputs) const
int do_compare (const game_logic::formula_callable *callable) const

Private Attributes

gamemap::location loc_


Detailed Description

Definition at line 83 of file callable_objects.hpp.


Constructor & Destructor Documentation

location_callable::location_callable ( const gamemap::location loc  )  [inline, explicit]

Definition at line 92 of file callable_objects.hpp.

Referenced by get_value().


Member Function Documentation

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

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

Reimplemented from game_logic::formula_callable.

Definition at line 26 of file callable_objects.cpp.

References game_logic::FORMULA_READ_ONLY.

int location_callable::do_compare ( const game_logic::formula_callable callable  )  const [private, virtual]

Reimplemented from game_logic::formula_callable.

Definition at line 33 of file callable_objects.cpp.

References loc(), loc_, gamemap::location::x, and gamemap::location::y.

const gamemap::location& location_callable::loc (  )  const [inline]

Definition at line 95 of file callable_objects.hpp.

Referenced by do_compare().

void location_callable::serialize_to_string ( std::string &  str  )  const [virtual]

Reimplemented from game_logic::formula_callable.

Definition at line 48 of file callable_objects.cpp.

References loc_, gamemap::location::x, and gamemap::location::y.


Member Data Documentation

Definition at line 84 of file callable_objects.hpp.

Referenced by do_compare(), get_value(), and serialize_to_string().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs