[splittiming] Let's break things again! (222)
We introduced a new class, called "SongPosition", that replaces some instance variables in the GameState class. (GameState::m_Position). Then, you also have it in PlayerState class which keeps track of the position based on their steps. (PlayerState::m_Position). Fixing the build errors: - GAMESTATE->m_fSomething should now be: - GAMESTATE->m_Position.m_fSomething - pPlayerState->m_Position.m_fSomething (or m_pPlayerState for some instance!)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#ifndef PlayerState_H
|
||||
#define PlayerState_H
|
||||
|
||||
#include "SongPosition.h"
|
||||
#include "Attack.h"
|
||||
#include "ModsGroup.h"
|
||||
#include "PlayerNumber.h"
|
||||
@@ -38,6 +39,9 @@ public:
|
||||
*/
|
||||
MultiPlayer m_mp;
|
||||
|
||||
// Music statistics:
|
||||
SongPosition m_Position;
|
||||
|
||||
/**
|
||||
* @brief Change the PlayerOptions to their default.
|
||||
* @param l the level of mods to reset.
|
||||
|
||||
Reference in New Issue
Block a user