ScummVM API documentation
avalot.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  * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
24  * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
25  */
26 
27 /* AVALOT The kernel of the program. */
28 
29 #ifndef AVALANCHE_AVALOT_H
30 #define AVALANCHE_AVALOT_H
31 
32 #include "avalanche/animation.h"
33 
34 namespace Avalanche {
35 class AvalancheEngine;
36 
37 static const byte kObjectNum = 18; // always preface with a #
38 static const int16 kCarryLimit = 12; // carry limit
39 
40 struct PedType {
41  int16 _x, _y;
42  Direction _direction;
43 };
44 
45 struct MagicType {
46  byte _operation; // one of the operations
47  uint16 _data; // data for them
48 };
49 
50 struct FieldType {
51  int16 _x1, _y1, _x2, _y2;
52 };
53 
54 struct LineType : public FieldType {
55  Color _color;
56 };
57 
58 struct QuasipedType {
59  byte _whichPed;
60  Color _textColor;
61  Room _room;
62  Color _backgroundColor;
63  People _who;
64 };
65 
66 } // End of namespace Avalanche
67 
68 #endif // AVALANCHE_AVALOT_H
Definition: avalot.h:54
Definition: animation.h:32
Definition: avalot.h:58
Definition: avalot.h:40
Definition: avalot.h:45
Definition: avalot.h:50