ScummVM API documentation
main_shape_archive.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 ULTIMA8_GFX_MAINSHAPEARCHIVE_H
23
#define ULTIMA8_GFX_MAINSHAPEARCHIVE_H
24
25
#include "ultima/ultima8/gfx/shape_archive.h"
26
27
namespace
Ultima {
28
namespace
Ultima8 {
29
30
class
TypeFlags;
31
class
ShapeInfo;
32
class
AnimDat;
33
class
ActorAnim;
34
class
AnimAction;
35
36
class
MainShapeArchive
:
public
ShapeArchive
{
37
public
:
38
MainShapeArchive
(uint16
id
,
const
Palette
*pal = 0,
39
const
ConvertShapeFormat
*format = 0)
40
:
ShapeArchive
(
id
, pal, format), _typeFlags(0), _animDat(0) { }
41
MainShapeArchive
(
Common::SeekableReadStream
*rs, uint16
id
,
const
Palette
*pal = 0,
42
const
ConvertShapeFormat
*format = 0)
43
:
ShapeArchive
(rs,
id
, pal, format), _typeFlags(0), _animDat(0) { }
44
45
~MainShapeArchive
()
override
;
46
47
void
loadTypeFlags(
Common::SeekableReadStream
*rs);
48
void
loadDamageDat(
Common::SeekableReadStream
*rs);
49
const
ShapeInfo
*getShapeInfo(uint32 shapenum);
50
51
void
loadAnimDat(
Common::SeekableReadStream
*rs);
52
const
ActorAnim
*getAnim(uint32 shape)
const
;
53
const
AnimAction
*getAnim(uint32 shape, uint32 action)
const
;
54
55
protected
:
56
TypeFlags
*_typeFlags;
57
AnimDat
*_animDat;
58
};
59
60
}
// End of namespace Ultima8
61
}
// End of namespace Ultima
62
63
#endif
Common::SeekableReadStream
Definition:
stream.h:745
Ultima::Ultima8::ActorAnim
Definition:
actor_anim.h:31
Ultima::Ultima8::AnimAction
Definition:
anim_action.h:94
Ultima::Ultima8::AnimDat
Definition:
anim_dat.h:34
Ultima::Ultima8::MainShapeArchive
Definition:
main_shape_archive.h:36
Ultima::Ultima8::Palette
Definition:
palette.h:36
Ultima::Ultima8::ShapeArchive
Definition:
shape_archive.h:34
Ultima::Ultima8::ShapeInfo
Definition:
shape_info.h:33
Ultima::Ultima8::TypeFlags
Definition:
type_flags.h:30
Ultima::Ultima8::ConvertShapeFormat
Definition:
convert_shape.h:35
engines
ultima
ultima8
gfx
main_shape_archive.h
Generated on Sat Oct 24 2026 09:26:50 for ScummVM API documentation by
1.9.4