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

#include <ActorTapeRecorder.h>

Public Member Functions

 ActorTapeRecorder (TestController *controller)
 
template<class Callback , class T = std::decay_t<std::invoke_result_t<Callback, const Actor &>>>
TestTape< T > custom (int actorIndex, Callback callback)
 
template<class Callback , class T = std::decay_t<std::invoke_result_t<Callback, const Actor &>>>
TestMultiTape< T > custom (std::initializer_list< int > actorIndices, Callback callback)
 
TestTape< int > totalHp ()
 
TestTape< int > totalCount ()
 
TestTape< int > countByState (AIState state)
 
TestTape< int > countByBuff (ActorBuff buff)
 
TestMultiTape< int > indicesByState (AIState state)
 
TestTape< int > hp (int actorIndex)
 
TestMultiTape< int > hps (std::initializer_list< int > actorIndices)
 
TestTape< AIStateaiState (int actorIndex)
 
TestMultiTape< AIStateaiStates (std::initializer_list< int > actorIndices)
 
TestTape< bool > hasBuff (int actorIndex, ActorBuff buff)
 

Static Private Member Functions

static std::deque< Actor > & actors ()
 

Private Attributes

TestController_controller = nullptr
 

Constructor & Destructor Documentation

◆ ActorTapeRecorder()

ActorTapeRecorder::ActorTapeRecorder ( TestController controller)
explicit

Member Function Documentation

◆ actors()

std::deque< Actor > & ActorTapeRecorder::actors ( )
staticprivate

◆ aiState()

TestTape< AIState > ActorTapeRecorder::aiState ( int  actorIndex)

◆ aiStates()

TestMultiTape< AIState > ActorTapeRecorder::aiStates ( std::initializer_list< int >  actorIndices)

◆ countByBuff()

TestTape< int > ActorTapeRecorder::countByBuff ( ActorBuff  buff)

◆ countByState()

TestTape< int > ActorTapeRecorder::countByState ( AIState  state)

◆ custom() [1/2]

template<class Callback , class T = std::decay_t<std::invoke_result_t<Callback, const Actor &>>>
TestTape< T > ActorTapeRecorder::custom ( int  actorIndex,
Callback  callback 
)
inline

◆ custom() [2/2]

template<class Callback , class T = std::decay_t<std::invoke_result_t<Callback, const Actor &>>>
TestMultiTape< T > ActorTapeRecorder::custom ( std::initializer_list< int >  actorIndices,
Callback  callback 
)
inline

◆ hasBuff()

TestTape< bool > ActorTapeRecorder::hasBuff ( int  actorIndex,
ActorBuff  buff 
)

◆ hp()

TestTape< int > ActorTapeRecorder::hp ( int  actorIndex)

◆ hps()

TestMultiTape< int > ActorTapeRecorder::hps ( std::initializer_list< int >  actorIndices)

◆ indicesByState()

TestMultiTape< int > ActorTapeRecorder::indicesByState ( AIState  state)

◆ totalCount()

TestTape< int > ActorTapeRecorder::totalCount ( )

◆ totalHp()

TestTape< int > ActorTapeRecorder::totalHp ( )

Member Data Documentation

◆ _controller

TestController* ActorTapeRecorder::_controller = nullptr
private

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