28 #ifndef GOB_PREGOB_PREGOB_H 29 #define GOB_PREGOB_PREGOB_H 31 #include "common/str.h" 32 #include "common/array.h" 35 #include "gob/aniobject.h" 37 #include "gob/pregob/txtfile.h" 53 virtual void run() = 0;
72 static const char kLanguageSuffixShort[5];
73 static const char *kLanguageSuffixLong [5];
94 void setPalette(
const byte *palette, uint16 size);
104 void setCursor(
Surface &sprite, int16 left, int16 top, int16 right, int16 bottom,
105 int16 hotspotX, int16 hotspotY);
125 void drawAnim(
const ANIList &anims);
130 void freeAnims(ANIList &anims)
const;
141 void loadSounds(
const char *
const *sounds, uint soundCount);
146 void playSound(uint sound, int16 frequency = 0, int16 repCount = 0);
154 void beep(int16 frequency, int32 length);
160 int16
checkInput(int16 &mouseX, int16 &mouseY, MouseButtons &mouseButtons);
162 int16
waitInput (int16 &mouseX, int16 &mouseY, MouseButtons &mouseButtons);
199 #endif // GOB_PREGOB_PREGOB_H
void clearAnim(ANIObject &anim)
Definition: aniobject.h:42
void beep(int16 frequency, int32 length)
void setCursor(Surface &sprite, int16 hotspotX, int16 hotspotY)
void playSound(uint sound, int16 frequency=0, int16 repCount=0)
void setPalette(const byte *palette, uint16 size)
Change the palette.
void loadSounds(const char *const *sounds, uint soundCount)
int16 checkInput(int16 &mouseX, int16 &mouseY, MouseButtons &mouseButtons)
bool isCursorVisible() const
void drawAnim(ANIObject &anim)
TXTFile * loadTXT(const Common::String &txtFile, TXTFile::Format format) const
Common::String getLocFile(const Common::String &file) const
void playSoundFile(const Common::String &file, int16 frequency=0, int16 repCount=0, bool interruptible=true)
void fadeIn()
Fade to the current palette.
Definition: surface.h:100
Definition: sounddesc.h:43
void redrawAnim(ANIObject &anim)
void endFrame(bool doInput)
Mode
Definition: aniobject.h:44
virtual void fixTXTStrings(TXTFile &txt) const
void fadeOut()
Fade to black.