17 #ifndef GAME_DATA_HPP_INCLUDED
18 #define GAME_DATA_HPP_INCLUDED
map_location last_selected
the last location where a select event fired.
const rand_rng::mt_rng & rng() const
void activate_scope_variable(std::string var_name) const
config & get_variable_cfg(const std::string &varname)
throws invalid_variablename_exception if varname is no valid variable name.
void set_next_scenario(const std::string &next_scenario)
variable_info< variable_info_detail::vit_const > variable_access_const
this variable accessor is takes a const reference and is guaranteed to not change the config...
Extends variable_info with methods that can only be applied if vit != vit_const.
non_const_variable_info< variable_info_detail::vit_throw_if_not_existent > variable_access_throw
this variable accessor will throw an exception when trying to access a non existent table...
Contains the exception interfaces used to signal completion of a scenario, campaign or turn...
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
Definitions for the interface to Wesnoth Markup Language (WML).
Variant for storing WML attributes.
config::attribute_value & get_variable(const std::string &varname)
throws invalid_variablename_exception if varname is no valid variable name.
const config & get_variables() const
void set_phase(PHASE phase)
non_const_variable_info< variable_info_detail::vit_create_if_not_existent > variable_access_create
this variable accessor will create a childtable when resolving name if it doesn't exist yet...
std::string next_scenario_
the scenario coming next (for campaigns)
virtual config::attribute_value get_variable_const(const std::string &varname) const
returns a blank attribute value if varname is no valid variable name.
bool allow_end_turn() const
void write_snapshot(config &cfg) const
variable_access_create get_variable_access_write(const std::string &varname)
returns a variable_access that can be used to change the game variables
GLsizei const GLfloat * value
void set_variable(const std::string &varname, const t_string &value)
does nothing if varname is no valid variable name.
variable_access_throw get_variable_access_throw(const std::string &varname)
Used to delete variables.
void set_allow_end_turn(bool value)
Encapsulates the map of the game.
std::vector< scoped_wml_variable * > scoped_variables
const std::string & next_scenario() const
void clear_variable_cfg(const std::string &varname)
Clears only the config children does nothing if varname is no valid variable name.
variable_access_const get_variable_access_read(const std::string &varname) const
returns a variable_access that cannot be used to change the game variables
config & add_variable_cfg(const std::string &varname, const config &value=config())
throws invalid_variablename_exception if varname is no valid variable name.
void clear_variable(const std::string &varname)
Clears attributes config children does nothing if varname is no valid variable name.
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string