22 #ifndef LASTEXPRESS_NIS_H 23 #define LASTEXPRESS_NIS_H 25 #include "lastexpress/lastexpress.h" 27 #include "lastexpress/data/archive.h" 28 #include "lastexpress/sound/slot.h" 32 class LastExpressEngine;
41 #define NIS_SOUND_CHUNK_SIZE 739 50 void addBounds(
Extent extent);
51 void convertNSPR16(byte *spriteData,
NisSprite *outSprite);
52 void getStream(byte *data, int32 size);
53 void loadSnd(int32 size);
54 int loadChunk(int32 size);
55 bool initNIS(
const char *filename, int32 flags);
58 void nisMouse(
Event *event);
59 void nisTimer(
Event *event);
63 void showNISStatus(int32 status);
64 bool doNIS(
const char *name, int32 flags);
66 void drawBK(
int type);
69 Slot *getChainedSound();
70 void setChainedSound(
Slot *slot);
80 int32 _eventsCount = 0;
82 byte *_eventsByteStream =
nullptr;
84 int32 _numOfOverlays = 0;
86 HPF *_archive =
nullptr;
87 Slot *_currentNISSound =
nullptr;
88 Slot *_chainedSoundSlot =
nullptr;
90 int32 _streamCurrentPosition = 0;
91 int32 _currentStreamPage = 0;
92 int32 _totalStreamPages = 0;
93 int32 _remainingStreamBytes = 0;
94 int32 _streamBufferSize = 0;
95 int32 _totalBackgroundPages = 0;
98 PixMap *_backgroundSurface =
nullptr;
100 bool _decompressToBackBuffer =
true;
101 bool _firstNISBackgroundDraw =
true;
102 bool _waxWaneToggleFlag =
false;
109 byte *_background1ByteStream =
nullptr;
110 byte *_background2ByteStream =
nullptr;
111 byte *_waneSpriteByteStream =
nullptr;
112 byte *_waxSpriteByteStream =
nullptr;
114 int32 _cumulativeEventSize = 0;
115 bool _backgroundFlag =
false;
116 int32 _backgroundType = 0;
117 int32 _selectBackgroundType = 0;
118 int32 _background1Offset = 0;
119 int32 _waneSpriteOffset = 0;
121 PixMap *_originalBackgroundSurface =
nullptr;
130 #endif // LASTEXPRESS_NIS_H Definition: lastexpress.h:523
Definition: lastexpress.h:488
Definition: lastexpress.h:505