Public Member Functions | Private Member Functions | Private Attributes

game_logic::outcome_callable Class Reference

#include <callable_objects.hpp>

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

List of all members.

Public Member Functions

 outcome_callable (const std::vector< variant > &hitLeft, const std::vector< variant > &prob, const std::vector< variant > &status)
const std::vector< variant > & hitLeft () const
const std::vector< variant > & prob () const
const std::vector< variant > & status () const

Private Member Functions

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

Private Attributes

std::vector< varianthitLeft_
std::vector< variantprob_
std::vector< variantstatus_

Detailed Description

Definition at line 299 of file callable_objects.hpp.


Constructor & Destructor Documentation

game_logic::outcome_callable::outcome_callable ( const std::vector< variant > &  hitLeft,
const std::vector< variant > &  prob,
const std::vector< variant > &  status 
) [inline]

Definition at line 305 of file callable_objects.hpp.


Member Function Documentation

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

Reimplemented from game_logic::formula_callable.

Definition at line 107 of file callable_objects.cpp.

References game_logic::FORMULA_READ_ONLY.

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

Implements game_logic::formula_callable.

Definition at line 95 of file callable_objects.cpp.

References hitLeft_, prob_, and status_.

const std::vector<variant>& game_logic::outcome_callable::hitLeft (  )  const [inline]

Definition at line 312 of file callable_objects.hpp.

References hitLeft_.

const std::vector<variant>& game_logic::outcome_callable::prob (  )  const [inline]

Definition at line 313 of file callable_objects.hpp.

References prob_.

const std::vector<variant>& game_logic::outcome_callable::status (  )  const [inline]

Definition at line 314 of file callable_objects.hpp.

References status_.


Member Data Documentation

Definition at line 300 of file callable_objects.hpp.

Referenced by get_value(), and hitLeft().

Definition at line 300 of file callable_objects.hpp.

Referenced by get_value(), and prob().

Definition at line 300 of file callable_objects.hpp.

Referenced by get_value(), and status().


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