scummvm/engines/buried/navdata.h

90 lines
2.3 KiB
C
Raw Normal View History

2013-08-04 01:08:40 -04: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.
*
* Additional copyright for this file:
* Copyright (C) 1995 Presto Studios, Inc.
*
* 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 3 of the License, or
* (at your option) any later version.
2013-08-04 01:08:40 -04:00
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
2013-08-04 01:08:40 -04:00
*
*/
#ifndef BURIED_NAVDATA_H
#define BURIED_NAVDATA_H
#include "common/scummsys.h"
namespace Buried {
struct Location {
2013-11-22 22:19:01 -05:00
Location() : timeZone(-1), environment(-1), node(-1), facing(-1), orientation(-1), depth(-1) {}
Location(int16 tz, int16 e, int16 n, int16 f, int16 o, int16 d) : timeZone(tz), environment(e), node(n), facing(f), orientation(o), depth(d) {}
2013-09-09 22:20:41 -04:00
int16 timeZone;
int16 environment;
int16 node;
int16 facing;
2013-09-18 19:08:39 -04:00
int16 orientation;
2013-09-09 22:20:41 -04:00
int16 depth;
2013-08-04 01:08:40 -04:00
};
enum {
TRANSITION_NONE = 0,
TRANSITION_PUSH = 1,
TRANSITION_WALK = 2,
TRANSITION_VIDEO = 3,
TRANSITION_FADE = 4
};
enum {
TF_PUSH_UP = 0,
TF_PUSH_LEFT = 1,
TF_PUSH_RIGHT = 2,
TF_PUSH_DOWN = 3
};
struct DestinationScene {
Location destinationScene;
2013-09-09 22:20:41 -04:00
int16 transitionType;
2013-08-04 01:08:40 -04:00
// Data specific to each type of transition:
// TRANSITION_VIDEO: video clip ID
// TRANSITION_PUSH: identifies direction
2013-09-09 22:20:41 -04:00
int16 transitionData;
2013-08-04 01:08:40 -04:00
2013-09-09 22:20:41 -04:00
int32 transitionStartFrame; // Unused for video
int32 transitionLength; // Unused for video
2013-08-04 01:08:40 -04:00
};
struct LocationStaticData {
Location location;
DestinationScene destUp;
DestinationScene destLeft;
DestinationScene destRight;
DestinationScene destDown;
DestinationScene destForward;
2013-09-09 22:20:41 -04:00
int16 classID;
int32 navFrameIndex;
int32 miscFrameIndex;
int32 miscFrameCount;
int32 cycleStartFrame;
int32 cycleFrameCount;
2013-08-04 01:08:40 -04:00
};
} // End of namespace Buried
#endif