ScummVM API documentation
backgroundIncrust.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_BACKGROUNDINCRUST_H
23#define CRUISE_BACKGROUNDINCRUST_H
24
25namespace Cruise {
26
28 struct backgroundIncrustStruct *next;
29 struct backgroundIncrustStruct *prev;
30
31 uint16 objectIdx;
32 int16 type;
33 uint16 overlayIdx;
34 int16 X;
35 int16 Y;
36 uint16 frame;
37 uint16 scale;
38 uint16 backgroundIdx;
39 uint16 scriptNumber;
40 uint16 scriptOverlayIdx;
41 uint8 *ptr;
42 int16 saveWidth;
43 int16 saveHeight;
44 uint16 saveSize;
45 int16 savedX;
46 int16 savedY;
47 char name[13];
48 uint16 spriteId;
49};
50
51extern backgroundIncrustStruct backgroundIncrustHead;
52
53void resetBackgroundIncrustList(backgroundIncrustStruct * pHead);
54backgroundIncrustStruct *addBackgroundIncrust(int16 overlayIdx, int16 param2, backgroundIncrustStruct * pHead, int16 scriptNumber, int16 scriptOverlay, int16 backgroundIdx, int16 param4);
55void regenerateBackgroundIncrust(backgroundIncrustStruct * pHead);
56void freeBackgroundIncrustList(backgroundIncrustStruct * pHead);
57void removeBackgroundIncrust(int overlay, int idx, backgroundIncrustStruct * pHead);
58void unmergeBackgroundIncrust(backgroundIncrustStruct * pHead, int ovl, int idx);
59
60} // End of namespace Cruise
61
62#endif
Definition: actor.h:25
Definition: backgroundIncrust.h:27