OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
CharacterTapeRecorder Class Reference

#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< CharacterPortraitportrait (int characterIndex)
 
TestMultiTape< CharacterPortraitportraits ()
 
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< Conditioncondition (int characterIndex)
 
TestMultiTape< Conditionconditions ()
 
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< SpellIdquickSpell (int characterIndex)
 
TestMultiTape< SpellIdquickSpells ()
 

Static Private Member Functions

static std::span< Charactercharacters ()
 

Private Attributes

TestController_controller = nullptr
 

Detailed Description

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:

Constructor & Destructor Documentation

◆ CharacterTapeRecorder()

CharacterTapeRecorder::CharacterTapeRecorder ( TestController controller)
explicit

Member Function Documentation

◆ ac()

TestTape< int > CharacterTapeRecorder::ac ( int  characterIndex)

◆ acs()

TestMultiTape< int > CharacterTapeRecorder::acs ( )

◆ characters()

std::span< Character > CharacterTapeRecorder::characters ( )
staticprivate

◆ condition()

TestTape< Condition > CharacterTapeRecorder::condition ( int  characterIndex)

◆ conditions()

TestMultiTape< Condition > CharacterTapeRecorder::conditions ( )

◆ custom() [1/2]

template<class Callback , class T = std::decay_t<std::invoke_result_t<Callback, const Character &>>>
TestMultiTape< T > CharacterTapeRecorder::custom ( Callback  callback)
inline

◆ custom() [2/2]

template<class Callback , class T = std::decay_t<std::invoke_result_t<Callback, const Character &>>>
TestTape< T > CharacterTapeRecorder::custom ( int  characterIndex,
Callback  callback 
)
inline

◆ experience()

TestTape< int64_t > CharacterTapeRecorder::experience ( int  characterIndex)

◆ experiences()

TestMultiTape< int64_t > CharacterTapeRecorder::experiences ( )

◆ hasBuff()

TestTape< bool > CharacterTapeRecorder::hasBuff ( int  characterIndex,
CharacterBuff  buff 
)

◆ hasSkill()

TestTape< bool > CharacterTapeRecorder::hasSkill ( int  characterIndex,
CharacterSkillType  skill 
)

◆ haveBuffs()

TestMultiTape< bool > CharacterTapeRecorder::haveBuffs ( CharacterBuff  buff)

◆ haveSkills()

TestMultiTape< bool > CharacterTapeRecorder::haveSkills ( CharacterSkillType  skill)

◆ hp()

TestTape< int > CharacterTapeRecorder::hp ( int  characterIndex)

◆ hps()

TestMultiTape< int > CharacterTapeRecorder::hps ( )

◆ level()

TestTape< int > CharacterTapeRecorder::level ( int  characterIndex)

◆ levels()

TestMultiTape< int > CharacterTapeRecorder::levels ( )

◆ mp()

TestTape< int > CharacterTapeRecorder::mp ( int  characterIndex)

◆ mps()

TestMultiTape< int > CharacterTapeRecorder::mps ( )

◆ portrait()

TestTape< CharacterPortrait > CharacterTapeRecorder::portrait ( int  characterIndex)

◆ portraits()

TestMultiTape< CharacterPortrait > CharacterTapeRecorder::portraits ( )

◆ quickSpell()

TestTape< SpellId > CharacterTapeRecorder::quickSpell ( int  characterIndex)

◆ quickSpells()

TestMultiTape< SpellId > CharacterTapeRecorder::quickSpells ( )

◆ resistance()

TestTape< int > CharacterTapeRecorder::resistance ( int  characterIndex,
CharacterAttribute  resistance 
)

◆ resistances()

TestMultiTape< int > CharacterTapeRecorder::resistances ( CharacterAttribute  resistance)

◆ skillLevel()

TestTape< int > CharacterTapeRecorder::skillLevel ( int  characterIndex,
CharacterSkillType  skill 
)

◆ skillLevels()

TestMultiTape< int > CharacterTapeRecorder::skillLevels ( CharacterSkillType  skill)

◆ stat()

TestTape< int > CharacterTapeRecorder::stat ( int  characterIndex,
CharacterAttribute  stat 
)

◆ stats()

TestMultiTape< int > CharacterTapeRecorder::stats ( CharacterAttribute  stat)

Member Data Documentation

◆ _controller

TestController* CharacterTapeRecorder::_controller = nullptr
private

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