ScummVM API documentation
game_state.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef ULTIMA_SHARED_CORE_GAME_STATE_H
23 #define ULTIMA_SHARED_CORE_GAME_STATE_H
24 
25 #include "ultima/shared/core/rect.h"
26 #include "ultima/shared/core/character.h"
27 #include "ultima/shared/core/map.h"
28 
29 namespace Ultima {
30 namespace Shared {
31 
32 class Game;
33 
34 enum VideoMode {
35  UNSET = -1, CGA = 0, EGA = 1, TGA = 2, VGA_ENHANCED = 3
36 };
37 
38 class GameState {
39 protected:
40  Game *_game;
41 public:
47 
51  CharacterArray _characters;
52 
57 
62 
66  uint _gameId;
67 
71  VideoMode _videoMode;
72 
77 
81  uint32 _randomSeed;
82 public:
86  GameState(Game *game);
87 
91  virtual ~GameState();
92 
96  virtual void setup() {}
97 
101  bool isPartyDead() const;
102 
106  bool isPartyFoodless() const;
107 };
108 
109 } // End of namespace Shared
110 } // End of namespace Ultima
111 
112 #endif
Definition: game.h:42
Definition: map.h:107
Definition: game_state.h:38
virtual void setup()
Definition: game_state.h:96
Point _worldMapPos
Definition: game_state.h:46
uint32 _randomSeed
Definition: game_state.h:81
uint _dungeonExitHitPoints
Definition: game_state.h:76
Definition: detection.h:27
Character * _currentCharacter
Definition: game_state.h:56
CharacterArray _characters
Definition: game_state.h:51
Definition: rect.h:45
Definition: character.h:141
Map * _map
Definition: game_state.h:61
bool isPartyFoodless() const
VideoMode _videoMode
Definition: game_state.h:71
uint _gameId
Definition: game_state.h:66