The Battle for Wesnoth  1.15.1+dev
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::string & name () const
 
configstore (const config &var_value=config())
 
bool activated () const
 

Private Attributes

const configdata_
 

Detailed Description

Definition at line 234 of file variable.hpp.

Constructor & Destructor Documentation

◆ scoped_weapon_info()

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

Definition at line 237 of file variable.hpp.

Member Function Documentation

◆ activate()

void scoped_weapon_info::activate ( )
virtual

Implements scoped_wml_variable.

Definition at line 524 of file variable.cpp.

References scoped_wml_variable::store().

Member Data Documentation

◆ data_

const config& scoped_weapon_info::data_
private

Definition at line 241 of file variable.hpp.


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