#include <CommonTapeRecorder.h>
◆ CommonTapeRecorder()
◆ activeCharacterIndex()
TestTape< int > CommonTapeRecorder::activeCharacterIndex |
( |
| ) |
|
◆ allGUIWindowsText()
TestMultiTape< std::string > CommonTapeRecorder::allGUIWindowsText |
( |
| ) |
|
Return a tape object of strings listing all the text drawn by GUIWindow::DrawText. TODO(pskelton): Tape will be spammy as it is recording everything.
- Returns
- Tape object.
◆ config()
◆ custom()
template<class Callback , class T = std::decay_t<std::invoke_result_t<Callback>>>
TestTape< T > CommonTapeRecorder::custom |
( |
Callback |
callback | ) |
|
|
inline |
Creates a tape object that will record changes in a value computed by the provided callback throughout the execution of a trace.
The callback is called on every frame, and also before and after running the trace, and unique values are stored on a tape. This effectively means that if, for example, the provided callback always returns the same value, then you'll get a tape of size 1.
A typical use case is to create a tape, call TestController::playTraceFromTestData
to play a trace, then check the data stored on the tape.
- Parameters
-
callback | Callback that will calculate the values to store on a tape. |
- Returns
- Tape object.
◆ deaths()
TestTape< int > CommonTapeRecorder::deaths |
( |
| ) |
|
◆ dialogueType()
◆ food()
TestTape< int > CommonTapeRecorder::food |
( |
| ) |
|
◆ gold()
TestTape< int > CommonTapeRecorder::gold |
( |
| ) |
|
◆ hasItem()
◆ house()
◆ hudTextures()
◆ map()
◆ mapItemCount() [1/2]
TestTape< int > CommonTapeRecorder::mapItemCount |
( |
| ) |
|
◆ mapItemCount() [2/2]
◆ messageBoxes()
TestMultiTape< std::string > CommonTapeRecorder::messageBoxes |
( |
| ) |
|
Return a tape object of strings listing all the hints whenever a pop up message box was called.
- Returns
- Tape object.
◆ questBit()
◆ screen()
◆ sounds()
◆ specialAttacks()
Return a tape object of SpecialAttackTypes listing all the special attack attempts on the party.
- Returns
- Tape object.
◆ sprites()
◆ statusBar()
TestTape< std::string > CommonTapeRecorder::statusBar |
( |
| ) |
|
◆ time()
◆ totalExperience()
TestTape< int64_t > CommonTapeRecorder::totalExperience |
( |
| ) |
|
◆ totalHirelings()
TestTape< int > CommonTapeRecorder::totalHirelings |
( |
| ) |
|
◆ totalHp()
TestTape< int > CommonTapeRecorder::totalHp |
( |
| ) |
|
◆ totalItemCount()
TestTape< int > CommonTapeRecorder::totalItemCount |
( |
| ) |
|
◆ turnBasedMode()
TestTape< bool > CommonTapeRecorder::turnBasedMode |
( |
| ) |
|
◆ _controller
The documentation for this class was generated from the following files: