aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova2/state.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/supernova2/state.h')
-rw-r--r--engines/supernova2/state.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/engines/supernova2/state.h b/engines/supernova2/state.h
new file mode 100644
index 0000000000..5c8cec4832
--- /dev/null
+++ b/engines/supernova2/state.h
@@ -0,0 +1,74 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef SUPERNOVA2_STATE_H
+#define SUPERNOVA2_STATE_H
+
+#include "common/events.h"
+#include "common/rect.h"
+#include "common/keyboard.h"
+//#include "supernova/rooms.h"
+//#include "supernova/sound.h"
+
+namespace Supernova2 {
+
+const int32 kMaxTimerValue = 0x7FFFFFFF;
+
+struct GameState {
+};
+
+class GameManager {
+public:
+ GameManager(Supernova2Engine *vm);
+ ~GameManager();
+
+ Supernova2Engine *_vm;
+ Common::KeyState _key;
+ Common::EventType _mouseClickType;
+ bool _mouseClicked;
+ bool _keyPressed;
+ int _mouseX;
+ int _mouseY;
+ GameState _state;
+ bool _guiEnabled;
+ bool _animationEnabled;
+ uint _timePaused;
+ bool _timerPaused;
+ int32 _messageDuration;
+ int32 _animationTimer;
+ int _inventoryScroll;
+ int _exitList[25];
+ // Dialog
+ int _currentSentence;
+ int _sentenceNumber[6];
+ byte _rows[6];
+ byte _rowsStart[6];
+
+ void initState();
+
+private:
+ int _prevImgId;
+};
+
+}
+
+#endif // SUPERNOVA_STATE_H