ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
game_content.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 GOT_VIEWS_GAME_CONTENT_H
23
#define GOT_VIEWS_GAME_CONTENT_H
24
25
#include "got/data/defines.h"
26
#include "got/views/view.h"
27
28
namespace
Got
{
29
namespace
Views {
30
31
class
GameContent
:
public
View
{
32
private
:
33
GfxSurface
_surface;
34
Common::Point
_moveDelta;
35
int
_transitionPos = 0;
36
int
_deathCtr = 0;
37
bool
_phased[240] = {};
38
int
_lightningCtr = 0;
39
int
_pixelX[8][25] = {};
40
int
_pixelY[8][25] = {};
41
byte _pixelP[8][25] = {};
42
byte _pixelC[8] = {};
43
int
_pauseCtr = 0;
44
int
_closingStateCtr = 0;
45
46
void
drawBackground(
GfxSurface
&s);
47
void
drawObjects(
GfxSurface
&s);
48
void
drawActors(
GfxSurface
&s);
49
void
drawBossHealth(
GfxSurface
&s);
50
void
drawLightning(
GfxSurface
&s);
51
void
placePixel(
GfxSurface
&s,
int
dir,
int
num);
52
void
checkThunderShake();
53
void
checkSwitchFlag();
54
void
checkForItem();
55
void
moveActors();
56
void
updateActors();
57
void
checkForBossDead();
58
void
checkForAreaChange();
59
void
thorDies();
60
void
spinThor();
61
void
thorDead();
62
void
checkForCheats();
63
void
throwLightning();
64
void
lightningCountdownDone();
65
void
closingSequence();
66
67
public
:
68
GameContent
();
69
virtual
~
GameContent
() {}
70
71
void
draw
()
override
;
72
bool
msgGame(
const
GameMessage
&msg)
override
;
73
bool
tick
()
override
;
74
};
75
76
}
// namespace Views
77
}
// namespace Got
78
79
#endif
Got::Views::GameContent::tick
bool tick() override
Got::Views::GameContent::draw
void draw() override
Got::Views::GameContent
Definition:
game_content.h:31
Got::Views::View
Definition:
view.h:42
Got::Gfx::GfxSurface
Definition:
gfx_surface.h:30
Got::GameMessage
Definition:
messages.h:72
Common::Point
Definition:
rect.h:45
Got
Definition:
console.h:28
engines
got
views
game_content.h
Generated on Mon Apr 7 2025 09:12:14 for ScummVM API documentation by
1.8.13