ScummVM API documentation
actor_he.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
23
#ifndef SCUMM_ACTOR_HE_H
24
#define SCUMM_ACTOR_HE_H
25
26
#include "scumm/actor.h"
27
28
namespace
Scumm
{
29
30
#define ACTOR_GENERAL_FLAG_IGNORE_ERASE 0x00000001
31
32
struct
HEEraseAuxEntry
{
33
int
actor;
34
int32 x1, y1, x2, y2;
35
};
36
37
struct
HEAnimAuxEntry
{
38
int
actor;
39
int
auxIndex;
40
};
41
42
struct
HEAnimAuxData
{
43
byte *auxDefaultSearchBlock;
44
byte *externalDataPtr;
45
const
byte *auxDataBlock;
46
int
actor;
47
};
48
49
struct
HEAuxFileRelInfo
{
50
int
globFileOffset;
51
Common::File
fileHandle;
52
int
globType;
53
int
globNum;
54
int
roomNum;
55
};
56
57
class
ActorHE
:
public
Actor
{
58
public
:
59
ActorHE
(
ScummEngine
*scumm,
int
id
) :
Actor
(scumm,
id
) {}
60
61
void
initActor(
int
mode)
override
;
62
63
void
hideActor()
override
;
64
65
void
drawActorToBackBuf(
int
x,
int
y);
66
67
void
setActorEraseType(
int
eraseValue);
68
69
void
setCondition(
int
slot,
int
set
);
70
bool
isConditionSet(
int
slot)
const
;
71
72
void
setUserCondition(
int
slot,
int
set
);
73
bool
isUserConditionSet(
int
slot)
const
;
74
75
void
setTalkCondition(
int
slot);
76
bool
isTalkConditionSet(
int
slot)
const
;
77
78
public
:
80
Common::Rect
_clipOverride
;
81
82
bool
_heNoTalkAnimation;
83
bool
_heTalking;
84
byte _generalFlags;
85
86
int
_auxActor;
87
int32 _auxEraseX1, _auxEraseY1, _auxEraseX2, _auxEraseY2;
88
89
struct
{
90
int16 posX;
91
int16 posY;
92
int16 color;
93
byte sentence[128];
94
} _heTalkQueue[16];
95
96
97
void
prepareDrawActorCostume(
BaseCostumeRenderer
*bcr)
override
;
98
void
setActorCostume(
int
c)
override
;
99
};
100
101
}
// End of namespace Scumm
102
103
#endif
Scumm::HEEraseAuxEntry
Definition:
actor_he.h:32
Common::Rect
Definition:
rect.h:144
Scumm::ActorHE::_clipOverride
Common::Rect _clipOverride
Definition:
actor_he.h:80
Scumm::ScummEngine
Definition:
scumm.h:518
Scumm::HEAnimAuxData
Definition:
actor_he.h:42
Scumm::ActorHE
Definition:
actor_he.h:57
Common::File
Definition:
file.h:47
Scumm::HEAuxFileRelInfo
Definition:
actor_he.h:49
Scumm::HEAnimAuxEntry
Definition:
actor_he.h:37
Scumm::Actor
Definition:
actor.h:91
Scumm::BaseCostumeRenderer
Definition:
base-costume.h:68
Scumm
Definition:
actor.h:30
engines
scumm
actor_he.h
Generated on Sat May 18 2024 09:13:47 for ScummVM API documentation by
1.8.13