2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
2007-04-27 12:58:35 +00:00
|
|
|
*
|
2007-05-30 21:56:52 +00:00
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2007-04-27 12:58:35 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2007-04-27 22:33:45 +00:00
|
|
|
#ifndef CRUISE_BACKGROUNDINCRUST_H
|
|
|
|
#define CRUISE_BACKGROUNDINCRUST_H
|
2007-04-27 12:58:35 +00:00
|
|
|
|
|
|
|
namespace Cruise {
|
|
|
|
|
|
|
|
struct backgroundIncrustStruct {
|
2007-04-27 22:33:45 +00:00
|
|
|
struct backgroundIncrustStruct *next;
|
|
|
|
struct backgroundIncrustStruct *prev;
|
2007-04-27 12:58:35 +00:00
|
|
|
|
|
|
|
uint16 objectIdx;
|
2007-04-28 23:21:13 +00:00
|
|
|
int16 type;
|
2007-04-27 12:58:35 +00:00
|
|
|
uint16 overlayIdx;
|
|
|
|
uint16 X;
|
|
|
|
uint16 Y;
|
|
|
|
uint16 field_E;
|
|
|
|
uint16 scale;
|
|
|
|
uint16 backgroundIdx;
|
|
|
|
uint16 scriptNumber;
|
|
|
|
uint16 scriptOverlayIdx;
|
2007-04-27 22:33:45 +00:00
|
|
|
uint8 *ptr;
|
2007-11-10 17:15:48 +00:00
|
|
|
int16 saveWidth;
|
|
|
|
int16 saveHeight;
|
|
|
|
uint16 saveSize;
|
|
|
|
int16 savedX;
|
|
|
|
int16 savedY;
|
2007-11-08 22:59:29 +00:00
|
|
|
char name[13];
|
2007-11-10 17:15:48 +00:00
|
|
|
uint16 spriteId;
|
2007-04-27 12:58:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern backgroundIncrustStruct backgroundIncrustHead;
|
|
|
|
|
2007-04-27 22:33:45 +00:00
|
|
|
void resetBackgroundIncrustList(backgroundIncrustStruct * pHead);
|
2007-11-10 17:15:48 +00:00
|
|
|
backgroundIncrustStruct *addBackgroundIncrust(int16 overlayIdx, int16 param2, backgroundIncrustStruct * pHead, int16 scriptNumber, int16 scriptOverlay, int16 backgroundIdx, int16 param4);
|
2007-11-08 22:59:29 +00:00
|
|
|
void loadBackgroundIncrustFromSave(Common::File& currentSaveFile);
|
2007-04-27 22:33:45 +00:00
|
|
|
void regenerateBackgroundIncrust(backgroundIncrustStruct * pHead);
|
|
|
|
void freeBackgroundIncrustList(backgroundIncrustStruct * pHead);
|
2007-04-28 23:21:13 +00:00
|
|
|
void removeBackgroundIncrust(int overlay, int idx, backgroundIncrustStruct * pHead);
|
2007-11-10 17:15:48 +00:00
|
|
|
void unmergeBackgroundIncrust(backgroundIncrustStruct * pHead, int ovl, int idx);
|
2007-04-27 12:58:35 +00:00
|
|
|
|
|
|
|
} // End of namespace Cruise
|
|
|
|
|
|
|
|
#endif
|