22 #ifndef PARALLACTION_DISK_H 23 #define PARALLACTION_DISK_H 27 #include "common/archive.h" 28 #include "common/str.h" 33 class SeekableReadStream;
51 struct BackgroundInfo;
62 virtual void init() { }
65 virtual void setLanguage(uint16 language) = 0;
67 virtual Script* loadLocation(
const char *name) = 0;
68 virtual Script* loadScript(
const char* name) = 0;
69 virtual GfxObj* loadTalk(
const char *name) = 0;
70 virtual GfxObj* loadObjects(
const char *name, uint8 part = 0) = 0;
71 virtual Frames* loadPointer(
const char *name) = 0;
72 virtual GfxObj* loadHead(
const char* name) = 0;
73 virtual Font* loadFont(
const char* name) = 0;
74 virtual GfxObj* loadStatic(
const char* name) = 0;
75 virtual Frames* loadFrames(
const char* name) = 0;
76 virtual void loadSlide(
BackgroundInfo& info,
const char *filename) = 0;
77 virtual void loadScenery(
BackgroundInfo& info,
const char* background,
const char* mask,
const char* path) = 0;
78 virtual Table* loadTable(
const char* name) = 0;
81 virtual MaskBuffer *loadMask(
const char *name, uint32 w, uint32 h) {
return 0; }
82 virtual PathBuffer *loadPath(
const char *name, uint32 w, uint32 h) {
return 0; }
96 void errorFileNotFound(
const char *filename);
108 void setLanguage(uint16 language)
override;
110 Script* loadLocation(
const char *name)
override;
111 Script* loadScript(
const char* name)
override;
117 void unpackBackground(
Common::ReadStream *stream, byte *screen, byte *mask, byte *path);
118 Cnv* loadCnv(
const char *filename);
122 Font *createFont(
const char *name,
Cnv* cnv);
133 void init()
override;
135 GfxObj* loadTalk(
const char *name)
override;
136 GfxObj* loadObjects(
const char *name, uint8 part = 0)
override;
137 Frames* loadPointer(
const char *name)
override;
138 GfxObj* loadHead(
const char* name)
override;
139 Font* loadFont(
const char* name)
override;
140 GfxObj* loadStatic(
const char* name)
override;
141 Frames* loadFrames(
const char* name)
override;
142 void loadSlide(
BackgroundInfo& info,
const char *filename)
override;
143 void loadScenery(
BackgroundInfo& info,
const char* background,
const char* mask,
const char* path)
override;
144 Table* loadTable(
const char* name)
override;
152 void patchFrame(byte *dst, byte *dlta, uint16 bytesPerPlane, uint16 height);
153 void unpackFrame(byte *dst, byte *src, uint16 planeSize);
154 void unpackBitmap(byte *dst, byte *src, uint16 numFrames, uint16 bytesPerPlane, uint16 height);
160 void buildMask(byte* buf);
168 void init()
override;
170 GfxObj* loadTalk(
const char *name)
override;
171 GfxObj* loadObjects(
const char *name, uint8 part = 0)
override;
172 Frames* loadPointer(
const char *name)
override;
173 GfxObj* loadHead(
const char* name)
override;
174 Font* loadFont(
const char* name)
override;
175 GfxObj* loadStatic(
const char* name)
override;
176 Frames* loadFrames(
const char* name)
override;
177 void loadSlide(
BackgroundInfo& info,
const char *filename)
override;
178 void loadScenery(
BackgroundInfo& info,
const char* background,
const char* mask,
const char* path)
override;
179 Table* loadTable(
const char* name)
override;
220 void init()
override;
223 void setLanguage(uint16 language)
override;
224 Script* loadLocation(
const char *name)
override;
225 Script* loadScript(
const char* name)
override;
226 GfxObj* loadTalk(
const char *name)
override;
227 GfxObj* loadObjects(
const char *name, uint8 part = 0)
override;
228 Frames* loadPointer(
const char *name)
override;
229 GfxObj* loadHead(
const char* name)
override;
230 Font* loadFont(
const char* name)
override;
231 GfxObj* loadStatic(
const char* name)
override;
232 Frames* loadFrames(
const char* name)
override;
233 void loadSlide(
BackgroundInfo& info,
const char *filename)
override;
234 void loadScenery(
BackgroundInfo& info,
const char* name,
const char* mask,
const char* path)
override;
235 Table* loadTable(
const char* name)
override;
238 MaskBuffer *loadMask(
const char *name, uint32 w, uint32 h)
override;
239 PathBuffer *loadPath(
const char *name, uint32 w, uint32 h)
override;
247 void init()
override;
263 void init()
override;
266 GfxObj* loadTalk(
const char *name)
override;
267 Font* loadFont(
const char* name)
override;
268 GfxObj* loadStatic(
const char* name)
override;
269 Frames* loadFrames(
const char* name)
override;
270 void loadSlide(
BackgroundInfo& info,
const char *filename)
override;
271 void loadScenery(
BackgroundInfo& info,
const char* name,
const char* mask,
const char* path)
override;
272 GfxObj* loadObjects(
const char *name, uint8 part = 0)
override;
275 MaskBuffer *loadMask(
const char *name, uint32 w, uint32 h)
override;
Definition: graphics.h:431
Definition: graphics.h:194
Definition: archive.h:312
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: graphics.h:352
Definition: graphics.h:220
Definition: graphics.h:124
Definition: graphics.h:53
Definition: lobject.h:338
Definition: graphics.h:300
Definition: graphics.h:73
Definition: objects.h:509