#include <variable.hpp>


Public Member Functions | |
| scoped_wml_variable (const std::string &var_name) | |
| virtual | ~scoped_wml_variable () |
| const std::string & | name () const |
| virtual void | activate ()=0 |
| config & | store (const config &var_value=config()) |
| bool | activated () const |
Private Attributes | |
| config | previous_val_ |
| const std::string | var_name_ |
| bool | activated_ |
Definition at line 153 of file variable.hpp.
| scoped_wml_variable::scoped_wml_variable | ( | const std::string & | var_name | ) |
Definition at line 468 of file variable.cpp.
References repos.
| scoped_wml_variable::~scoped_wml_variable | ( | ) | [virtual] |
Definition at line 488 of file variable.cpp.
References activated_, config::child_range(), LOG_NG, previous_val_, repos, and var_name_.

| virtual void scoped_wml_variable::activate | ( | ) | [pure virtual] |
Implemented in scoped_weapon_info, scoped_xy_unit, and scoped_recall_unit.
| bool scoped_wml_variable::activated | ( | ) | const [inline] |
Definition at line 161 of file variable.hpp.
References activated_.
| const std::string& scoped_wml_variable::name | ( | ) | const [inline] |
Definition at line 158 of file variable.hpp.
References var_name_.
Referenced by scoped_recall_unit::activate(), and scoped_xy_unit::activate().

Definition at line 476 of file variable.cpp.
References activated_, config::add_child(), LOG_NG, previous_val_, repos, and var_name_.
Referenced by scoped_recall_unit::activate(), scoped_weapon_info::activate(), and scoped_xy_unit::activate().


bool scoped_wml_variable::activated_ [private] |
Definition at line 165 of file variable.hpp.
Referenced by activated(), store(), and ~scoped_wml_variable().
config scoped_wml_variable::previous_val_ [private] |
Definition at line 163 of file variable.hpp.
Referenced by store(), and ~scoped_wml_variable().
const std::string scoped_wml_variable::var_name_ [private] |
Definition at line 164 of file variable.hpp.
Referenced by name(), store(), and ~scoped_wml_variable().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:15:54 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |