The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Private Attributes | List of all members
scoped_weapon_info Class Reference

#include <variable.hpp>

Inheritance diagram for scoped_weapon_info:

Public Member Functions

 scoped_weapon_info (const std::string &var_name, optional_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

optional_const_config data_
 

Detailed Description

Definition at line 239 of file variable.hpp.

Constructor & Destructor Documentation

◆ scoped_weapon_info()

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

Definition at line 242 of file variable.hpp.

Member Function Documentation

◆ activate()

void scoped_weapon_info::activate ( )
virtual

Implements scoped_wml_variable.

Definition at line 559 of file variable.cpp.

References data_, and scoped_wml_variable::store().

Member Data Documentation

◆ data_

optional_const_config scoped_weapon_info::data_
private

Definition at line 246 of file variable.hpp.

Referenced by activate().


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