Public Member Functions | Private Member Functions | Private Attributes

game_logic::move_callable Class Reference

#include <callable_objects.hpp>

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

List of all members.

Public Member Functions

 move_callable (const map_location &src, const map_location &dst)
const map_locationsrc () const
const map_locationdst () 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 formula_callable *callable) const

Private Attributes

map_location src_
map_location dst_

Detailed Description

Definition at line 72 of file callable_objects.hpp.


Constructor & Destructor Documentation

game_logic::move_callable::move_callable ( const map_location src,
const map_location dst 
) [inline]

Definition at line 90 of file callable_objects.hpp.

References game_logic::formula_callable::type_.


Member Function Documentation

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

Reimplemented from game_logic::formula_callable.

Definition at line 49 of file callable_objects.cpp.

References map_location::do_compare(), dst_, and src_.

Here is the call graph for this function:

const map_location& game_logic::move_callable::dst (  )  const [inline]

Definition at line 97 of file callable_objects.hpp.

References dst_.

Referenced by ai::formula_ai::execute_variant().

Here is the caller graph for this function:

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

Reimplemented from game_logic::formula_callable.

Definition at line 83 of file callable_objects.hpp.

References game_logic::FORMULA_READ_ONLY.

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

Implements game_logic::formula_callable.

Definition at line 74 of file callable_objects.hpp.

References dst_, and src_.

const map_location& game_logic::move_callable::src (  )  const [inline]

Definition at line 96 of file callable_objects.hpp.

References src_.

Referenced by ai::formula_ai::execute_variant().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 73 of file callable_objects.hpp.

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

Definition at line 73 of file callable_objects.hpp.

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


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:48 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs