ScummVM API documentation
game.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_EARLY_GAME_H
23#define ULTIMA_SHARED_EARLY_GAME_H
24
25#include "ultima/shared/early/game_base.h"
26#include "ultima/shared/core/party.h"
27
28namespace Ultima {
29namespace Shared {
30
31class GameView;
32class GameState;
33class FontResources;
34
35namespace Maps {
36class Map;
37}
38
42class Game : public GameBase {
43 DECLARE_MESSAGE_MAP;
44 bool EndOfTurnMsg(CEndOfTurnMsg *msg);
45protected:
46 GameView *_gameView;
47 FontResources *_fontResources;
48protected:
53
58public:
59 byte _edgeColor;
60 byte _borderColor;
61 byte _highlightColor;
62 byte _textColor;
63 byte _color1;
64 byte _bgColor;
65 byte _whiteColor;
66
71
76
81
82public:
83 CLASSDEF;
84
89
93 ~Game() override;
94
98 void playFX(uint effectId);
99
103 void setEGAPalette(const byte *palette);
104
109
113 Maps::Map *getMap() const override { return _map; }
114
119
123 void endOfTurn();
124};
125
126} // End of namespace Shared
127} // End of namespace Ultima
128
129#endif
Definition: serializer.h:80
Definition: messages.h:402
Definition: font_resources.h:32
Definition: game_base.h:53
Definition: game.h:42
Party * _party
Definition: game.h:70
Maps::Map * getMap() const override
Definition: game.h:113
Maps::Map * _map
Definition: game.h:75
void setEGAPalette(const byte *palette)
void synchronize(Common::Serializer &s) override
void playFX(uint effectId)
uint32 _randomSeed
Definition: game.h:80
Definition: map.h:46
Definition: party.h:36