Public Types | Public Member Functions | Private Attributes

terrain_callable Class Reference

#include <callable_objects.hpp>

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

List of all members.

Public Types

typedef map_location location

Public Member Functions

 terrain_callable (const terrain_type &t, const location &loc)
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 location loc_
const terrain_typet_

Detailed Description

Definition at line 65 of file callable_objects.hpp.


Member Typedef Documentation

Definition at line 67 of file callable_objects.hpp.


Constructor & Destructor Documentation

terrain_callable::terrain_callable ( const terrain_type t,
const location loc 
) [inline]

Definition at line 68 of file callable_objects.hpp.

References game_logic::formula_callable::type_.


Member Function Documentation

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

Definition at line 376 of file callable_objects.cpp.

References map_location::do_compare(), and loc_.

Here is the call graph for this function:

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

Reimplemented from game_logic::formula_callable.

Definition at line 367 of file callable_objects.cpp.

References game_logic::FORMULA_READ_ONLY.

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

Implements game_logic::formula_callable.

Definition at line 353 of file callable_objects.cpp.

References terrain_type::id(), loc_, t_, map_location::x, and map_location::y.

Here is the call graph for this function:


Member Data Documentation

Definition at line 79 of file callable_objects.hpp.

Referenced by do_compare(), and get_value().

Definition at line 80 of file callable_objects.hpp.

Referenced by 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:16:31 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs