ScummVM API documentation
cell.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_CELL_H
23#define CRUISE_CELL_H
24
25
26#include "common/scummsys.h"
27
28namespace Cruise {
29
30struct gfxEntryStruct;
31
32struct cellStruct {
33 struct cellStruct *next;
34 struct cellStruct *prev;
35 int16 idx;
36 int16 type;
37 int16 overlay;
38 int16 x;
39 int16 field_C;
40 int16 spriteIdx;
41 int16 color;
42 int16 backgroundPlane;
43 int16 freeze;
44 int16 parent;
45 int16 parentOverlay;
46 int16 parentType;
47 int16 followObjectOverlayIdx;
48 int16 followObjectIdx;
49 int16 animStart;
50 int16 animEnd;
51 int16 animWait;
52 int16 animStep;
53 int16 animChange;
54 int16 animType;
55 int16 animSignal;
56 int16 animCounter;
57 int16 animLoop;
58 gfxEntryStruct *gfxPtr;
59};
60
61extern cellStruct cellHead;
62
63void resetPtr(cellStruct * ptr);
64cellStruct *addCell(cellStruct *pHead, int16 overlayIdx, int16 objIdx, int16 type, int16 backgroundPlane, int16 scriptOverlay, int16 scriptNumber, int16 scriptType);
65void createTextObject(cellStruct *pObject, int overlayIdx, int messageIdx, int x, int y, int width, int16 color, int backgroundPlane, int parentOvl, int parentIdx);
66void removeCell(cellStruct *objPtr, int ovlNumber, int objectIdx, int objType, int backgroundPlane);
67void freezeCell(cellStruct * pObject, int overlayIdx, int objIdx, int objType, int backgroundPlane, int oldFreeze, int newFreeze);
68void sortCells(int16 param1, int16 param2, cellStruct *objPtr);
69void linkCell(cellStruct *pHead, int ovl, int obj, int type, int ovl2, int obj2);
70
71
72} // End of namespace Cruise
73
74#endif
Definition: actor.h:25
Definition: cell.h:32
Definition: object.h:29