Class that handles some game related functions. More...
#include <script_game.hpp>
Public Types | |
enum | LandscapeType { LT_TEMPERATE = ::LT_TEMPERATE, LT_ARCTIC = ::LT_ARCTIC, LT_TROPIC = ::LT_TROPIC, LT_TOYLAND = ::LT_TOYLAND } |
Type of landscapes known in the game. More... | |
Static Public Member Functions | |
static bool | Pause () |
Pause the server. | |
static bool | Unpause () |
Unpause the server. | |
static bool | IsPaused () |
Check if the game is paused. | |
static LandscapeType | GetLandscape () |
Get the current landscape. | |
static bool | IsMultiplayer () |
Is this a multiplayer game? |
Class that handles some game related functions.
game
Definition at line 22 of file script_game.hpp.
Type of landscapes known in the game.
LT_TEMPERATE |
Temperate climiate. |
LT_ARCTIC |
Arctic climate. |
LT_TROPIC |
Tropic climate. |
LT_TOYLAND |
Toyland climate. |
Definition at line 27 of file script_game.hpp.
bool ScriptGame::IsMultiplayer | ( | ) | [static] |
Is this a multiplayer game?
Definition at line 39 of file script_game.cpp.
References _network_server.
Referenced by ScriptWindow::Close(), ScriptWindow::Highlight(), ScriptWindow::IsOpen(), and ScriptViewport::ScrollTo().
bool ScriptGame::IsPaused | ( | ) | [static] |
Check if the game is paused.
Definition at line 29 of file script_game.cpp.
References _pause_mode.
bool ScriptGame::Pause | ( | ) | [static] |
Pause the server.
Definition at line 19 of file script_game.cpp.
References CMD_PAUSE, ScriptObject::DoCommand(), and PM_PAUSED_GAME_SCRIPT.
bool ScriptGame::Unpause | ( | ) | [static] |
Unpause the server.
Definition at line 24 of file script_game.cpp.
References CMD_PAUSE, ScriptObject::DoCommand(), and PM_PAUSED_GAME_SCRIPT.