19#ifndef HEADER_CACHED_CHARACTERISTICS_HPP
20#define HEADER_CACHED_CHARACTERISTICS_HPP
22#include "karts/abstract_characteristic.hpp"
35 SaveValue(
void *content) : content(content) {}
52 virtual void process(CharacteristicType type, Value value,
bool *is_set)
const;
Characteristics are the properties of a kart that influence gameplay mechanics.
Definition: abstract_characteristic.hpp:43
Definition: cached_characteristic.hpp:27
virtual void process(CharacteristicType type, Value value, bool *is_set) const
Returns the stored value.
Definition: cached_characteristic.cpp:179
const AbstractCharacteristic * m_origin
The characteristics that hold the original values.
Definition: cached_characteristic.hpp:42
std::vector< SaveValue > m_values
All values for a characteristic.
Definition: cached_characteristic.hpp:39
virtual ~CachedCharacteristic()
Deletes all allocated values.
Definition: cached_characteristic.cpp:32
void updateSource()
Fetches all cached values from the original source.
Definition: cached_characteristic.cpp:64
Used to store a value.
Definition: cached_characteristic.hpp:31