From: Daniel Karbach Date: Thu, 29 Nov 2012 13:00:49 +0000 (+0100) Subject: added (currently uninterpreted) config to state X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=67817384452d1d8955169c0dc648774e71ea3abe;p=l2e.git added (currently uninterpreted) config to state --- diff --git a/src/common/GameState.cpp b/src/common/GameState.cpp index ee7b1b2..480c305 100644 --- a/src/common/GameState.cpp +++ b/src/common/GameState.cpp @@ -12,7 +12,11 @@ namespace common { GameState::GameState() : partySize(1) , money(0) -, time(0) { +, time(0) +, messageSpeed(MESSAGE_SPEED_NORMAL) +, battleCursor(CURSOR_CLEAR) +, statusCursor(CURSOR_CLEAR) +, music(MUSIC_STEREO) { party[0] = heroes; party[1] = 0; party[2] = 0; diff --git a/src/common/GameState.h b/src/common/GameState.h index 078da1a..1cd5428 100644 --- a/src/common/GameState.h +++ b/src/common/GameState.h @@ -28,6 +28,24 @@ struct GameState { Uint32 money; Uint32 time; + enum MessageSpeed { + MESSAGE_SPEED_FAST, + MESSAGE_SPEED_NORMAL, + MESSAGE_SPEED_SLOW, + }; + enum Cursor { + CURSOR_CLEAR, + CURSOR_MEMORY, + }; + enum Music { + MUSIC_STEREO, + MUSIC_MONO, + }; + int messageSpeed; + int battleCursor; + int statusCursor; + int music; + }; }