19 #ifndef OPENXCOM_STARTSTATE_H
20 #define OPENXCOM_STARTSTATE_H
22 #include "../Engine/State.h"
33 enum LoadingPhase { LOADING_STARTED, LOADING_FAILED, LOADING_SUCCESSFUL, LOADING_DONE };
41 Text *_text, *_cursor;
48 std::wostringstream _output;
50 static LoadingPhase loading;
51 static std::string error;
66 void addLine(
const std::wstring &str);
68 static int load(
void *game_ptr);
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
static int load(void *game_ptr)
Loads the game resources.
Definition: StartState.cpp:302
A game state that receives user input and reacts accordingly.
Definition: State.h:44
Timer used to run code in fixed intervals.
Definition: Timer.h:37
Text string displayed on screen.
Definition: Text.h:41
void animate()
Animates the terminal.
Definition: StartState.cpp:231
void init()
Reset everything.
Definition: StartState.cpp:128
Initializes the game and loads all required content.
Definition: StartState.h:38
Contains strings used throughout the game for localization.
Definition: Language.h:42
Takes care of loading and storing each character in a sprite font.
Definition: Font.h:40
void think()
Displays messages.
Definition: StartState.cpp:154
StartState(Game *game)
Creates the Start state.
Definition: StartState.cpp:56
~StartState()
Cleans up the Start state.
Definition: StartState.cpp:114
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:44
void handle(Action *action)
Handles key clicks.
Definition: StartState.cpp:216
void addLine(const std::wstring &str)
Adds a line of text.
Definition: StartState.cpp:287