Etterna 0.74.4
|
The player's indivdual state. More...
#include <PlayerState.h>
Public Member Functions | |
PlayerState () | |
Set up the PlayerState with initial values. | |
void | Reset () |
Reset the PlayerState with the initial values. | |
void | Update (float fDelta) |
Update the PlayerState based on the present time. | |
void | SetPlayerNumber (PlayerNumber pn) |
void | ResetCacheInfo () |
auto | GetDisplayedTiming () const -> const TimingData & |
void | ResetToDefaultPlayerOptions (ModsLevel l) |
Change the PlayerOptions to their default. | |
void | SetNumCols (int ncol) |
auto | GetNumCols () -> int |
void | PushSelf (lua_State *L) |
Public Attributes | |
PlayerNumber | m_PlayerNumber |
The PlayerNumber assigned to this Player: usually 1 or 2. | |
MultiPlayer | m_mp |
The MultiPlayer number assigned to this Player, typically 1-32. | |
float | m_NotefieldZoom |
std::vector< CacheDisplayedBeat > | m_CacheDisplayedBeat |
Holds a vector sorted by real beat, the beat that would be displayed in the NoteField (because they are affected by scroll segments), and also the velocity. This vector will be populated on Player::Load() be used a lot in ArrowEffects to determine the target beat in O(log N). | |
std::vector< CacheNoteStat > | m_CacheNoteStat |
Holds a vector sorted by beat, the cumulative number of notes from the start of the song. This will be used by [insert more description here]. | |
ModsGroup< PlayerOptions > | m_PlayerOptions {} |
The PlayerOptions presently in use by the Player. | |
float | m_fLastDrawnBeat |
Used to push note-changing modifiers back so that notes don't pop. | |
HealthState | m_HealthState |
The Player's HealthState in general terms. | |
PlayerController | m_PlayerController |
The type of person/machine controlling the Player. | |
SampleHistory | m_EffectHistory |
int | m_iCpuSkill |
float | m_fReadBPM |
bool | m_bGoalTrackerUsesReplay = false |
int | m_NumCols |
float | playertargetgoal = 0.93F |
The player's indivdual state.
void PlayerState::ResetToDefaultPlayerOptions | ( | ModsLevel | l | ) |
Change the PlayerOptions to their default.
l | the level of mods to reset. |
void PlayerState::Update | ( | float | fDelta | ) |
Update the PlayerState based on the present time.
fDelta | the current time. |
|
mutable |
Used to push note-changing modifiers back so that notes don't pop.
This is used during gameplay and set by NoteField.
PlayerNumber PlayerState::m_PlayerNumber |
The PlayerNumber assigned to this Player: usually 1 or 2.
TODO: Remove use of PlayerNumber. All data about the player should live in PlayerState and callers should not use PlayerNumber to index into GameState.