ScummVM API documentation
object.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 CRUISE_OBJECT_H
23#define CRUISE_OBJECT_H
24
25#include "cruise/overlay.h"
26
27namespace Cruise {
28
30 uint8 *imagePtr;
31 int imageSize;
32 int fontIndex;
33 int height;
34 int width; // for font: max right border; for sprite: just width
35};
36
37
39 int16 X;
40 int16 Y;
41 int16 baseFileIdx;
42 int16 fileIdx;
43 int16 scale;
44 int16 state;
45 int16 state2;
46 int16 nbState;
47};
48
49objDataStruct *getObjectDataFromOverlay(int ovlIdx, int objIdx);
50int16 getSingleObjectParam(int16 overlayIdx, int16 param2, int16 param3, int16 * returnParam);
51int16 getMultipleObjectParam(int16 overlayIdx, int16 objectIdx, objectParamsQuery * returnParam);
52void objectReset();
53const char *getObjectName(int index, const char *string);
54int getObjectClass(int overlayIdx, int objIdx);
55
56} // End of namespace Cruise
57
58#endif
Definition: actor.h:25
Definition: object.h:29
Definition: overlay.h:105
Definition: object.h:38