ScummVM API documentation
perso.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 CRUISE_PERSO_H
23
#define CRUISE_PERSO_H
24
25
namespace
Cruise
{
26
27
enum
{
28
NUM_NODES = 20,
29
NUM_PERSONS = 10
30
};
31
32
struct
point
{
33
int16 x;
34
int16 y;
35
};
36
37
struct
persoStruct
{
38
int16 inc_droite;
// 2
39
int16 inc_droite0;
// 2
40
int16 inc_chemin;
// 2
41
point
coordinates[400];
// 1600
42
int16 solution[NUM_NODES + 3][2];
//((20+3)*2*2)
43
int16 inc_jo1;
// 2
44
int16 inc_jo2;
// 2
45
int16 dir_perso;
// 2
46
int16 inc_jo0;
// 2
47
};
48
49
struct
MovementEntry
{
50
int16 x;
51
int16 y;
52
int16 direction;
53
int16 zoom;
54
int16 poly;
55
};
56
57
extern
persoStruct
*persoTable[NUM_PERSONS];
58
extern
int16 numPoly;
59
60
int
cor_droite(
int
x1,
int
y1,
int
x2,
int
y2,
point
* outputTable);
61
void
freePerso(
int
persoIdx);
62
void
freeCTP();
63
void
affiche_chemin(int16 persoIdx,
MovementEntry
&data);
64
int
direction(
int
x1,
int
y1,
int
x2,
int
y2,
int
inc_jo1,
int
inc_jo2);
65
66
}
// End of namespace Cruise
67
68
#endif
Cruise
Definition:
actor.h:25
Cruise::MovementEntry
Definition:
perso.h:49
Cruise::persoStruct
Definition:
perso.h:37
Cruise::point
Definition:
perso.h:32
engines
cruise
perso.h
Generated on Sun Oct 25 2026 09:17:27 for ScummVM API documentation by
1.9.4