The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
scoped_weapon_info Class Reference

#include <variable.hpp>

Inheritance diagram for scoped_weapon_info:
Inheritance graph

Public Member Functions

 scoped_weapon_info (const std::string &var_name, const config &data)
 
void activate ()
 
- Public Member Functions inherited from scoped_wml_variable
 scoped_wml_variable (const std::string &var_name)
 
virtual ~scoped_wml_variable ()
 
const std::stringname () const
 
configstore (const config &var_value=config())
 
bool activated () const
 

Private Attributes

config const & data_
 

Detailed Description

Definition at line 184 of file variable.hpp.

Constructor & Destructor Documentation

scoped_weapon_info::scoped_weapon_info ( const std::string var_name,
const config data 
)
inline

Definition at line 187 of file variable.hpp.

Member Function Documentation

void scoped_weapon_info::activate ( )
virtual

Implements scoped_wml_variable.

Definition at line 476 of file variable.cpp.

References data_, and scoped_wml_variable::store().

Member Data Documentation

config const& scoped_weapon_info::data_
private

Definition at line 191 of file variable.hpp.

Referenced by activate().


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