scoped_wml_variable Class Reference

#include <variable.hpp>

Inheritance diagram for scoped_wml_variable:

Inheritance graph
[legend]
Collaboration diagram for scoped_wml_variable:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 scoped_wml_variable (const std::string &var_name)
virtual ~scoped_wml_variable ()
const std::string & name () const
virtual void activate ()=0
void store (const config &var_value)
bool activated () const

Private Attributes

config previous_val_
const std::string var_name_
bool activated_


Detailed Description

Definition at line 116 of file variable.hpp.


Constructor & Destructor Documentation

scoped_wml_variable::scoped_wml_variable ( const std::string &  var_name  ) 

Definition at line 435 of file variable.cpp.

References game_state::scoped_variables.

scoped_wml_variable::~scoped_wml_variable (  )  [virtual]


Member Function Documentation

const std::string& scoped_wml_variable::name (  )  const [inline]

Definition at line 121 of file variable.hpp.

References var_name_.

Referenced by scoped_recall_unit::activate(), and scoped_xy_unit::activate().

virtual void scoped_wml_variable::activate (  )  [pure virtual]

Implemented in scoped_xy_unit, and scoped_recall_unit.

void scoped_wml_variable::store ( const config var_value  ) 

bool scoped_wml_variable::activated (  )  const [inline]

Definition at line 124 of file variable.hpp.

References activated_.


Member Data Documentation

Definition at line 126 of file variable.hpp.

Referenced by store(), and ~scoped_wml_variable().

const std::string scoped_wml_variable::var_name_ [private]

Definition at line 127 of file variable.hpp.

Referenced by name(), store(), and ~scoped_wml_variable().

Definition at line 128 of file variable.hpp.

Referenced by activated(), store(), and ~scoped_wml_variable().


The documentation for this class was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs