OpenEnroth 73e68f7
|
#include <CharacterTapeRecorder.h>
Public Member Functions | |
CharacterTapeRecorder (TestController *controller) | |
template<class Callback , class T = std::decay_t<std::invoke_result_t<Callback, const Character &>>> | |
TestMultiTape< T > | custom (Callback callback) |
template<class Callback , class T = std::decay_t<std::invoke_result_t<Callback, const Character &>>> | |
TestTape< T > | custom (int characterIndex, Callback callback) |
TestTape< int64_t > | experience (int characterIndex) |
TestMultiTape< int64_t > | experiences () |
TestTape< CharacterPortrait > | portrait (int characterIndex) |
TestMultiTape< CharacterPortrait > | portraits () |
TestTape< int > | hp (int characterIndex) |
TestMultiTape< int > | hps () |
TestTape< int > | mp (int characterIndex) |
TestMultiTape< int > | mps () |
TestTape< int > | ac (int characterIndex) |
TestMultiTape< int > | acs () |
TestTape< int > | level (int characterIndex) |
TestMultiTape< int > | levels () |
TestTape< int > | skillLevel (int characterIndex, CharacterSkillType skill) |
TestMultiTape< int > | skillLevels (CharacterSkillType skill) |
TestTape< bool > | hasSkill (int characterIndex, CharacterSkillType skill) |
TestMultiTape< bool > | haveSkills (CharacterSkillType skill) |
TestTape< Condition > | condition (int characterIndex) |
TestMultiTape< Condition > | conditions () |
TestTape< int > | resistance (int characterIndex, CharacterAttribute resistance) |
TestMultiTape< int > | resistances (CharacterAttribute resistance) |
TestTape< int > | stat (int characterIndex, CharacterAttribute stat) |
TestMultiTape< int > | stats (CharacterAttribute stat) |
TestTape< bool > | hasBuff (int characterIndex, CharacterBuff buff) |
TestMultiTape< bool > | haveBuffs (CharacterBuff buff) |
TestTape< SpellId > | quickSpell (int characterIndex) |
TestMultiTape< SpellId > | quickSpells () |
Static Private Member Functions | |
static std::span< Character > | characters () |
Private Attributes | |
TestController * | _controller = nullptr |
Tape recorder for character properties.
Plural methods return a tape of vectors, with one element for each character in party. Singular methods take a 0-based character index and return a tape for this character.
For example:
hp(0)
returns a tape of health points for the 1st character.hps()
returns a tape where each element is a vector of four int
s - health points for the whole party.
|
explicit |
TestTape< int > CharacterTapeRecorder::ac | ( | int | characterIndex | ) |
TestMultiTape< int > CharacterTapeRecorder::acs | ( | ) |
|
staticprivate |
TestMultiTape< Condition > CharacterTapeRecorder::conditions | ( | ) |
|
inline |
|
inline |
TestTape< int64_t > CharacterTapeRecorder::experience | ( | int | characterIndex | ) |
TestMultiTape< int64_t > CharacterTapeRecorder::experiences | ( | ) |
TestTape< bool > CharacterTapeRecorder::hasBuff | ( | int | characterIndex, |
CharacterBuff | buff | ||
) |
TestTape< bool > CharacterTapeRecorder::hasSkill | ( | int | characterIndex, |
CharacterSkillType | skill | ||
) |
TestMultiTape< bool > CharacterTapeRecorder::haveBuffs | ( | CharacterBuff | buff | ) |
TestMultiTape< bool > CharacterTapeRecorder::haveSkills | ( | CharacterSkillType | skill | ) |
TestTape< int > CharacterTapeRecorder::hp | ( | int | characterIndex | ) |
TestMultiTape< int > CharacterTapeRecorder::hps | ( | ) |
TestTape< int > CharacterTapeRecorder::level | ( | int | characterIndex | ) |
TestMultiTape< int > CharacterTapeRecorder::levels | ( | ) |
TestTape< int > CharacterTapeRecorder::mp | ( | int | characterIndex | ) |
TestMultiTape< int > CharacterTapeRecorder::mps | ( | ) |
TestTape< CharacterPortrait > CharacterTapeRecorder::portrait | ( | int | characterIndex | ) |
TestMultiTape< CharacterPortrait > CharacterTapeRecorder::portraits | ( | ) |
TestMultiTape< SpellId > CharacterTapeRecorder::quickSpells | ( | ) |
TestTape< int > CharacterTapeRecorder::resistance | ( | int | characterIndex, |
CharacterAttribute | resistance | ||
) |
TestMultiTape< int > CharacterTapeRecorder::resistances | ( | CharacterAttribute | resistance | ) |
TestTape< int > CharacterTapeRecorder::skillLevel | ( | int | characterIndex, |
CharacterSkillType | skill | ||
) |
TestMultiTape< int > CharacterTapeRecorder::skillLevels | ( | CharacterSkillType | skill | ) |
TestTape< int > CharacterTapeRecorder::stat | ( | int | characterIndex, |
CharacterAttribute | stat | ||
) |
TestMultiTape< int > CharacterTapeRecorder::stats | ( | CharacterAttribute | stat | ) |
|
private |