ScummVM API documentation
px_prop_anims.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
* Additional copyright for this file:
8
* Copyright (C) 1999-2000 Revolution Software Ltd.
9
* This code is based on source code created by Revolution Software,
10
* used with permission.
11
*
12
* This program is free software: you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation, either version 3 of the License, or
15
* (at your option) any later version.
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
21
*
22
* You should have received a copy of the GNU General Public License
23
* along with this program. If not, see <http://www.gnu.org/licenses/>.
24
*
25
*/
26
27
#ifndef ICB_PX_PROP_ANIMS_H_INCLUDED
28
#define ICB_PX_PROP_ANIMS_H_INCLUDED
29
30
// Include headers needed by this file.
31
#include "engines/icb/common/px_common.h"
32
33
namespace
ICB
{
34
35
// These define the filenames for files containing prop animations.
36
// The PSX definition is in engine\p4_psx.h
37
#define PX_FILENAME_PROPANIMS "pxwgpropanims"
38
39
#ifndef PC_EXT_LINKED
40
#define PC_EXT_LINKED "linked"
41
#endif
42
43
#ifndef PSX_EXT_LINKED
44
#define PSX_EXT_LINKED "PSXlinked"
45
#endif
46
47
#ifdef PX_EXT_LINKED
48
#undef PX_EXT_LINKED
49
#endif
50
51
#define PX_EXT_LINKED PC_EXT_LINKED
52
53
#define VERSION_PXWGPROPANIMS 300
54
55
// This the animations for one prop.
56
typedef
struct
{
57
uint16 num_anims;
// The number of animations this prop has.
58
uint16 anims[1];
// Array of file offsets to the entries for the animations.
59
}
_animating_prop
;
60
61
// This holds one animation and any associated barriers. Note that the offsets are relative to the
62
// start of this _animation_entry.
63
typedef
struct
{
64
uint16 name;
// File offset of the name of the animation.
65
uint16 offset_barriers;
// Offset to an array of barrier indices (NULL if none).
66
uint16 offset_heights;
// Offset to an array of PxReal height values (0 means there isn't one).
67
uint8 num_frames;
// Number of frames in the animation.
68
uint8 num_barriers_per_frame;
// The number of barriers per frame (same for each frame and very often 1).
69
uint8 frames[1];
// The frames for the animation.
70
}
_animation_entry
;
71
72
}
// End of namespace ICB
73
74
#endif // #ifndef _PX_PROP_ANIMS_H_INCLUDED
ICB::_animating_prop
Definition:
px_prop_anims.h:56
ICB
Definition:
actor.h:32
ICB::_animation_entry
Definition:
px_prop_anims.h:63
engines
icb
common
px_prop_anims.h
Generated on Fri Nov 22 2024 09:18:48 for ScummVM API documentation by
1.8.13