Public Member Functions | Private Member Functions | Private Attributes

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 map_location &loc)
 location_callable (int x, int y)
const map_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

map_location loc_

Detailed Description

Definition at line 104 of file callable_objects.hpp.


Constructor & Destructor Documentation

location_callable::location_callable ( const map_location loc  )  [inline, explicit]

Definition at line 112 of file callable_objects.hpp.

location_callable::location_callable ( int  x,
int  y 
) [inline, explicit]

Definition at line 116 of file callable_objects.hpp.


Member Function Documentation

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

Reimplemented from game_logic::formula_callable.

Definition at line 60 of file callable_objects.cpp.

References map_location::do_compare(), loc(), and loc_.

Here is the call graph for this function:

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

Reimplemented from game_logic::formula_callable.

Definition at line 53 of file callable_objects.cpp.

References game_logic::FORMULA_READ_ONLY.

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

Implements game_logic::formula_callable.

Definition at line 42 of file callable_objects.cpp.

References loc_, map_location::x, and map_location::y.

const map_location& location_callable::loc (  )  const [inline]

Definition at line 119 of file callable_objects.hpp.

Referenced by do_compare().

Here is the caller graph for this function:

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

Reimplemented from game_logic::formula_callable.

Definition at line 71 of file callable_objects.cpp.

References loc_, map_location::x, and map_location::y.


Member Data Documentation

Definition at line 105 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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