Public Member Functions | Private Member Functions | Private Attributes

game_logic::safe_call_result Class Reference

#include <callable_objects.hpp>

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

List of all members.

Public Member Functions

 safe_call_result (const formula_callable *callable, int status, const map_location &loc=map_location())

Private Member Functions

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

Private Attributes

const formula_callablefailed_callable_
const map_location current_unit_location_
const int status_

Detailed Description

Definition at line 231 of file callable_objects.hpp.


Constructor & Destructor Documentation

game_logic::safe_call_result::safe_call_result ( const formula_callable callable,
int  status,
const map_location loc = map_location() 
) [inline]

Definition at line 241 of file callable_objects.hpp.


Member Function Documentation

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

Reimplemented from game_logic::formula_callable.

Definition at line 319 of file callable_objects.cpp.

References current_unit_location_, and game_logic::FORMULA_READ_ONLY.

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

Implements game_logic::formula_callable.

Definition at line 302 of file callable_objects.cpp.

References current_unit_location_, failed_callable_, and status_.


Member Data Documentation

Definition at line 233 of file callable_objects.hpp.

Referenced by get_inputs(), and get_value().

Definition at line 232 of file callable_objects.hpp.

Referenced by get_value().

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