Changeset View
Changeset View
Standalone View
Standalone View
source/ps/Game.h
/* Copyright (C) 2021 Wildfire Games. | /* Copyright (C) 2023 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | public: | ||||
* Get m_IsVisualReplay. | * Get m_IsVisualReplay. | ||||
* | * | ||||
* @return bool the value of m_IsVisualReplay. | * @return bool the value of m_IsVisualReplay. | ||||
**/ | **/ | ||||
inline bool IsVisualReplay() const | inline bool IsVisualReplay() const | ||||
{ return m_IsVisualReplay; } | { return m_IsVisualReplay; } | ||||
/** | /** | ||||
* Get m_IsEditorGame. | |||||
* | |||||
* @return bool the value of m_IsEditorGame. | |||||
**/ | |||||
inline bool IsEditorGame() const | |||||
{ | |||||
return m_IsEditorGame; | |||||
} | |||||
/** | |||||
* Get the pointer to the game world object. | * Get the pointer to the game world object. | ||||
* | * | ||||
* @return CWorld * the value of m_World. | * @return CWorld * the value of m_World. | ||||
**/ | **/ | ||||
inline CWorld *GetWorld() | inline CWorld *GetWorld() | ||||
{ return m_World; } | { return m_World; } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | private: | ||||
std::string m_InitialSavedState; // valid between RegisterInit and LoadInitialState | std::string m_InitialSavedState; // valid between RegisterInit and LoadInitialState | ||||
bool m_IsSavedGame; // true if loading a saved game; false for a new game | bool m_IsSavedGame; // true if loading a saved game; false for a new game | ||||
int LoadVisualReplayData(); | int LoadVisualReplayData(); | ||||
OsPath m_ReplayPath; | OsPath m_ReplayPath; | ||||
bool m_IsVisualReplay; | bool m_IsVisualReplay; | ||||
std::istream* m_ReplayStream; | std::istream* m_ReplayStream; | ||||
u32 m_FinalReplayTurn; | u32 m_FinalReplayTurn; | ||||
bool m_IsEditorGame; // true if the game is for use the editor | |||||
Stan: Don't think you need that comment. | |||||
}; | }; | ||||
extern CGame *g_Game; | extern CGame *g_Game; | ||||
#endif | #endif |
Wildfire Games · Phabricator
Don't think you need that comment.