ScummVM API documentation
heroes.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 PETKA_HEROES_H
23
#define PETKA_HEROES_H
24
25
#include "common/ptr.h"
26
#include "petka/objects/object.h"
27
#include "petka/walk.h"
28
29
namespace
Petka
{
30
31
class
QObjectPetka
:
public
QObject
{
32
public
:
33
QObjectPetka
();
34
void
processMessage(
const
QMessage
&msg)
override
;
35
void
initSurface();
36
37
void
walk(
int
x,
int
y);
38
void
stopWalk();
39
void
updateWalk();
40
void
setReactionAfterWalk(uint index,
QReaction
*reaction,
QMessageObject
*sender,
bool
deleteReaction);
41
42
void
draw()
override
;
43
bool
isInPoint(
Common::Point
p)
override
;
44
void
update(
int
time)
override
;
45
void
setPos(
Common::Point
p,
bool
)
override
;
46
47
double
calcPerspective(
int
y);
48
49
void
updateZ()
override
;
50
51
void
sub_408940();
52
53
private
:
54
virtual
void
recalcOffset();
55
56
public
:
57
int
_field7C;
58
int
_surfW;
59
int
_surfH;
60
int
_x_;
61
int
_y_;
62
// int _surfId;
63
int
_imageId;
64
double
_k;
65
Common::ScopedPtr<Walk>
_walk;
66
int
_destX;
67
int
_destY;
68
bool
_isWalking;
69
QReaction
*_heroReaction;
70
QMessageObject
*_sender;
71
int
_fieldB4;
72
};
73
74
class
QObjectChapayev
:
public
QObjectPetka
{
75
public
:
76
QObjectChapayev
();
77
78
void
recalcOffset()
override
{}
79
80
};
81
82
}
// End of namespace Petka
83
84
#endif
Petka::QReaction
Definition:
base.h:123
Petka::QObject
Definition:
object.h:101
Petka::QMessage
Definition:
base.h:98
Common::ScopedPtr
Definition:
ptr.h:572
Petka::QObjectChapayev
Definition:
heroes.h:74
Petka::QObjectPetka
Definition:
heroes.h:31
Petka::QMessageObject
Definition:
object.h:58
Common::Point
Definition:
rect.h:45
Petka
Definition:
base.h:27
engines
petka
objects
heroes.h
Generated on Sat Aug 31 2024 09:15:54 for ScummVM API documentation by
1.8.13