The Battle for Wesnoth  1.17.14+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, 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 239 of file variable.hpp.

Constructor & Destructor Documentation

◆ scoped_weapon_info()

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

Definition at line 242 of file variable.hpp.

Member Function Documentation

◆ activate()

void scoped_weapon_info::activate ( )

Implements scoped_wml_variable.

Definition at line 559 of file variable.cpp.

References scoped_wml_variable::store().

Member Data Documentation

◆ data_

const config& scoped_weapon_info::data_

Definition at line 246 of file variable.hpp.

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