20 #include "../Engine/State.h" 31 enum LoadingPhase { LOADING_STARTED, LOADING_FAILED, LOADING_SUCCESSFUL, LOADING_DONE };
39 Text *_text, *_cursor;
46 std::ostringstream _output;
48 static LoadingPhase loading;
49 static std::string error;
64 void addLine(
const std::string &str);
66 static int load(
void *game_ptr);
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:32
static int load(void *game_ptr)
Loads the game resources.
Definition: StartState.cpp:278
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:35
Text string displayed on screen.
Definition: Text.h:40
void animate()
Animates the terminal.
Definition: StartState.cpp:207
void init()
Reset everything.
Definition: StartState.cpp:124
Initializes the game and loads all required content.
Definition: StartState.h:36
Contains strings used throughout the game for localization.
Definition: Language.h:39
Takes care of loading and storing each character in a sprite font.
Definition: Font.h:46
void think()
Displays messages.
Definition: StartState.cpp:149
void addLine(const std::string &str)
Adds a line of text.
Definition: StartState.cpp:263
~StartState()
Cleans up the Start state.
Definition: StartState.cpp:110
StartState()
Creates the Start state.
Definition: StartState.cpp:51
void handle(Action *action)
Handles key clicks.
Definition: StartState.cpp:192
Definition: BaseInfoState.cpp:40