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
25namespace Cruise {
26
27enum {
28 NUM_NODES = 20,
29 NUM_PERSONS = 10
30};
31
32struct point {
33 int16 x;
34 int16 y;
35};
36
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
50 int16 x;
51 int16 y;
52 int16 direction;
53 int16 zoom;
54 int16 poly;
55};
56
57extern persoStruct *persoTable[NUM_PERSONS];
58extern int16 numPoly;
59
60int cor_droite(int x1, int y1, int x2, int y2, point* outputTable);
61void freePerso(int persoIdx);
62void freeCTP();
63void affiche_chemin(int16 persoIdx, MovementEntry &data);
64int direction(int x1, int y1, int x2, int y2, int inc_jo1, int inc_jo2);
65
66} // End of namespace Cruise
67
68#endif
Definition: actor.h:25
Definition: perso.h:49
Definition: perso.h:37
Definition: perso.h:32