|
| GameState () |
| Set up the GameState with initial values.
|
|
void | Reset () |
| Reset the GameState back to initial values.
|
|
void | ResetPlayer (PlayerNumber pn) |
|
void | ResetPlayerOptions (PlayerNumber pn) |
|
void | ApplyCmdline () |
|
void | ApplyGameCommand (const std::string &sCommand, PlayerNumber pn=PLAYER_INVALID) |
|
void | BeginGame () |
| Start the game when the first player joins in.
|
|
void | JoinPlayer (PlayerNumber pn) |
|
void | UnjoinPlayer (PlayerNumber pn) |
|
auto | JoinInput (PlayerNumber pn) -> bool |
|
auto | JoinPlayers () -> bool |
|
void | LoadProfiles (bool bLoadEdits=true) |
|
void | SavePlayerProfile () |
|
auto | HaveProfileToLoad () -> bool |
|
auto | HaveProfileToSave () -> bool |
|
void | AddStageToPlayer (PlayerNumber pn) |
|
void | LoadCurrentSettingsFromProfile (PlayerNumber pn) |
|
void | SaveCurrentSettingsToProfile (PlayerNumber pn) |
| Save the specified player's settings to his/her profile.
|
|
auto | GetDefaultSong () const -> Song * |
|
auto | CanSafelyEnterGameplay (std::string &reason) -> bool |
|
void | SetCompatibleStylesForPlayers () |
|
void | ForceOtherPlayersToCompatibleSteps (PlayerNumber main) |
|
void | Update (float fDelta) |
|
void | SetCurGame (const Game *pGame) |
| State what the current game is.
|
|
auto | ChangePreferredDifficultyAndStepsType (PlayerNumber pn, Difficulty dc, StepsType st) -> bool |
|
auto | ChangePreferredDifficulty (PlayerNumber pn, int dir) -> bool |
|
auto | GetClosestShownDifficulty (PlayerNumber pn) const -> Difficulty |
|
auto | GetEasiestStepsDifficulty () const -> Difficulty |
|
auto | GetHardestStepsDifficulty () const -> Difficulty |
|
void | SetNewStageSeed () |
|
auto | PlayersCanJoin () const -> bool |
| Determine if a second player can join in at this time.
|
|
auto | GetCurrentGame () const -> const Game * |
|
auto | GetCurrentStyle (PlayerNumber pn) const -> const Style * |
|
void | SetCurrentStyle (const Style *style, PlayerNumber pn) |
|
auto | SetCompatibleStyle (StepsType stype, PlayerNumber pn) -> bool |
|
auto | IsPlayerEnabled (PlayerNumber pn) const -> bool |
|
auto | IsMultiPlayerEnabled (MultiPlayer mp) const -> bool |
|
auto | IsPlayerEnabled (const PlayerState *pPlayerState) const -> bool |
|
auto | GetNumPlayersEnabled () const -> int |
|
auto | IsHumanPlayer (PlayerNumber pn) const -> bool |
| Is the specified Player a human Player?
|
|
auto | GetNumHumanPlayers () const -> int |
|
auto | GetFirstHumanPlayer () const -> PlayerNumber |
|
auto | GetFirstDisabledPlayer () const -> PlayerNumber |
|
auto | IsCpuPlayer (PlayerNumber pn) const -> bool |
|
auto | AnyPlayersAreCpu () const -> bool |
|
auto | GetMasterPlayerNumber () const -> PlayerNumber |
| Retrieve the present master player number.
|
|
void | SetMasterPlayerNumber (PlayerNumber p) |
| Set the master player number.
|
|
auto | GetProcessedTimingData () const -> TimingData * |
| Retrieve the present timing data being processed.
|
|
void | SetProcessedTimingData (TimingData *t) |
| Set the timing data to be used with processing.
|
|
auto | GetNumStagesForCurrentSongAndStepsOrCourse () const -> int |
|
void | BeginStage () |
|
void | CancelStage () |
|
void | CommitStageStats () |
|
void | FinishStage () |
|
auto | GetCourseSongIndex () const -> int |
|
auto | GetPlayerDisplayName (PlayerNumber pn) const -> std::string |
|
auto | GetLoadingCourseSongIndex () const -> int |
|
auto | IsPlaylistCourse () const -> bool |
|
auto | CountNotesSeparately () -> bool |
|
void | GetAllUsedNoteSkins (std::vector< std::string > &out) const |
|
void | ResetMusicStatistics () |
|
void | SetPaused (bool p) |
|
auto | GetPaused () const -> bool |
|
void | UpdateSongPosition (float fPositionSeconds, const TimingData &timing, const RageTimer ×tamp=RageZeroTimer) |
|
auto | GetSongPercent (float beat) const -> float |
|
auto | AllAreInDangerOrWorse () const -> bool |
|
auto | OneIsHot () const -> bool |
|
void | ResetStageStatistics () |
| Call this function when it's time to play a new stage.
|
|
void | GetDefaultPlayerOptions (PlayerOptions &po) |
|
void | GetDefaultSongOptions (SongOptions &so) |
|
void | ResetToDefaultSongOptions (ModsLevel l) |
|
void | ApplyPreferredModifiers (PlayerNumber pn, const std::string &sModifiers) |
|
void | ApplyStageModifiers (PlayerNumber pn, const std::string &sModifiers) |
|
auto | CurrentOptionsDisqualifyPlayer (PlayerNumber pn) -> bool |
|
auto | PlayerIsUsingModifier (PlayerNumber pn, const std::string &sModifier) -> bool |
|
auto | GetPlayerFailType (const PlayerState *pPlayerState) const -> FailType |
|
auto | GetNumSidesJoined () const -> int |
|
auto | GetNumCols (int pn) -> int |
|
auto | IsEventMode () const -> bool |
|
auto | GetEditLocalProfile () -> Profile * |
|
auto | GetGameplayMode () const -> GameplayMode |
|
void | TogglePracticeModeSafe (bool set) |
|
void | TogglePracticeMode (bool set) |
|
auto | IsPracticeMode () -> bool |
|
void | discordInit () |
|
void | updateDiscordPresence (const std::string &largeImageText, const std::string &details, const std::string &state, int64_t endTime) |
|
void | updateDiscordPresenceMenu (const std::string &largeImageText) |
|
void | PushSelf (lua_State *L) |
|
Holds game data that is not saved between sessions.