19#ifndef HEADER_XML_CHARACTERISTICS_HPP
20#define HEADER_XML_CHARACTERISTICS_HPP
22#include "karts/abstract_characteristic.hpp"
37 virtual void process(CharacteristicType type,
Value value,
bool *is_set)
const;
43 static void processFloat(
const std::string &processor,
float *value,
bool *is_set);
44 static void processBool(
const std::string &processor,
bool *value,
bool *is_set);
Characteristics are the properties of a kart that influence gameplay mechanics.
Definition: abstract_characteristic.hpp:43
utility class used to parse XML files
Definition: xml_node.hpp:48
Definition: xml_characteristic.hpp:29
std::vector< std::string > m_values
The computation that was read from an xml file.
Definition: xml_characteristic.hpp:32
virtual void copyFrom(const AbstractCharacteristic *other)
Copies the characteristics from the specified other characteristic class into this class.
Definition: xml_characteristic.cpp:38
static void processBool(const std::string &processor, bool *value, bool *is_set)
Executes an operation on a bool value.
Definition: xml_characteristic.cpp:291
virtual void process(CharacteristicType type, Value value, bool *is_set) const
process will execute the operation that is specified in the saved string.
Definition: xml_characteristic.cpp:49
void load(const XMLNode *node)
Loads all commands from a given xml file.
Definition: xml_characteristic.cpp:313
static void processFloat(const std::string &processor, float *value, bool *is_set)
Executes an operation on a float value.
Definition: xml_characteristic.cpp:215
Definition: abstract_characteristic.hpp:46