From da3d145819ef93a0600c404c0600b4db2d17367d Mon Sep 17 00:00:00 2001 From: Joseph-Eugene Winzer Date: Mon, 1 Jan 2018 12:50:27 +0100 Subject: SUPERNOVA: Moves strings to GameManager class --- engines/supernova/msn_def.h | 10 ---------- engines/supernova/state.cpp | 10 ++++++++++ engines/supernova/state.h | 2 ++ 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/engines/supernova/msn_def.h b/engines/supernova/msn_def.h index 26491373cf..2ed5cf59f8 100644 --- a/engines/supernova/msn_def.h +++ b/engines/supernova/msn_def.h @@ -558,16 +558,6 @@ enum StringID { kStringInventoryMoney }; -static StringID guiCommands[] = { - kStringCommandGo, kStringCommandLook, kStringCommandTake, kStringCommandOpen, kStringCommandClose, - kStringCommandPress, kStringCommandPull, kStringCommandUse, kStringCommandTalk, kStringCommandGive -}; - -static StringID guiStatusCommands[] = { - kStringStatusCommandGo, kStringStatusCommandLook, kStringStatusCommandTake, kStringStatusCommandOpen, kStringStatusCommandClose, - kStringStatusCommandPress, kStringStatusCommandPull, kStringStatusCommandUse, kStringStatusCommandTalk, kStringStatusCommandGive -}; - ObjectType operator|(ObjectType a, ObjectType b); ObjectType operator&(ObjectType a, ObjectType b); ObjectType operator^(ObjectType a, ObjectType b); diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index deeb043133..ff758f7fe6 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -273,6 +273,16 @@ static Common::String timeToString(int msec) { return Common::String(s); } +StringID GameManager::guiCommands[] = { + kStringCommandGo, kStringCommandLook, kStringCommandTake, kStringCommandOpen, kStringCommandClose, + kStringCommandPress, kStringCommandPull, kStringCommandUse, kStringCommandTalk, kStringCommandGive +}; + +StringID GameManager::guiStatusCommands[] = { + kStringStatusCommandGo, kStringStatusCommandLook, kStringStatusCommandTake, kStringStatusCommandOpen, kStringStatusCommandClose, + kStringStatusCommandPress, kStringStatusCommandPull, kStringStatusCommandUse, kStringStatusCommandTalk, kStringStatusCommandGive +}; + GameManager::GameManager(SupernovaEngine *vm) : _inventory(_inventoryScroll) , _vm(vm) { diff --git a/engines/supernova/state.h b/engines/supernova/state.h index e47c906aa5..674624d17d 100644 --- a/engines/supernova/state.h +++ b/engines/supernova/state.h @@ -113,6 +113,8 @@ public: bool serialize(Common::WriteStream *out); bool deserialize(Common::ReadStream *in, int version); + static StringID guiCommands[]; + static StringID guiStatusCommands[]; SupernovaEngine *_vm; Common::KeyState _key; Common::EventType _mouseClickType; -- cgit v1.2.3