2013-06-20 12:08:58 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2014-02-18 01:34:18 +00:00
|
|
|
*
|
2013-06-20 12:08:58 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2014-02-18 01:34:18 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2013-06-20 12:08:58 +00:00
|
|
|
* GNU General Public License for more details.
|
2014-02-18 01:34:18 +00:00
|
|
|
*
|
2013-06-20 12:08:58 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This code is based on the original source code of Lord Avalot d'Argent version 1.3.
|
|
|
|
* Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
|
|
|
|
*/
|
|
|
|
|
2013-07-02 14:46:56 +00:00
|
|
|
/* AVALOT The kernel of the program. */
|
|
|
|
|
2013-09-07 07:00:34 +00:00
|
|
|
#ifndef AVALANCHE_AVALOT_H
|
|
|
|
#define AVALANCHE_AVALOT_H
|
2013-06-20 12:08:58 +00:00
|
|
|
|
2013-09-23 21:16:57 +00:00
|
|
|
#include "avalanche/animation.h"
|
|
|
|
|
2013-06-20 12:08:58 +00:00
|
|
|
namespace Avalanche {
|
2013-06-29 08:20:22 +00:00
|
|
|
class AvalancheEngine;
|
2013-06-20 12:08:58 +00:00
|
|
|
|
2013-09-21 20:26:36 +00:00
|
|
|
static const byte kObjectNum = 18; // always preface with a #
|
|
|
|
static const int16 kCarryLimit = 12; // carry limit
|
|
|
|
|
|
|
|
struct PedType {
|
|
|
|
int16 _x, _y;
|
2013-09-23 21:16:57 +00:00
|
|
|
Direction _direction;
|
2013-09-21 20:26:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct MagicType {
|
|
|
|
byte _operation; // one of the operations
|
|
|
|
uint16 _data; // data for them
|
|
|
|
};
|
|
|
|
|
2013-09-22 20:47:12 +00:00
|
|
|
struct FieldType {
|
2013-09-21 20:26:36 +00:00
|
|
|
int16 _x1, _y1, _x2, _y2;
|
|
|
|
};
|
|
|
|
|
2013-09-22 20:47:12 +00:00
|
|
|
struct LineType : public FieldType {
|
2013-09-27 19:57:24 +00:00
|
|
|
Color _color;
|
2013-09-21 20:26:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct QuasipedType {
|
2013-09-27 19:57:24 +00:00
|
|
|
byte _whichPed;
|
2013-10-01 05:43:21 +00:00
|
|
|
Color _textColor;
|
2013-09-27 19:57:24 +00:00
|
|
|
Room _room;
|
|
|
|
Color _backgroundColor;
|
2013-09-24 19:24:52 +00:00
|
|
|
People _who;
|
2013-09-21 20:26:36 +00:00
|
|
|
};
|
|
|
|
|
2013-06-20 12:08:58 +00:00
|
|
|
} // End of namespace Avalanche
|
|
|
|
|
2013-09-07 07:00:34 +00:00
|
|
|
#endif // AVALANCHE_AVALOT_H
|