Classes | |
struct | AnimProperties |
Public Member Functions | |
PreGob (GobEngine *vm) | |
virtual void | run ()=0 |
Protected Types | |
typedef Common::Array< ANIObject * > | ANIList |
Protected Member Functions | |
void | initScreen () |
void | fadeOut () |
Fade to black. | |
void | fadeIn () |
Fade to the current palette. | |
void | clearScreen () |
void | setPalette (const byte *palette, uint16 size) |
Change the palette. More... | |
void | addCursor () |
void | removeCursor () |
void | setCursor (Surface &sprite, int16 hotspotX, int16 hotspotY) |
void | setCursor (Surface &sprite, int16 left, int16 top, int16 right, int16 bottom, int16 hotspotX, int16 hotspotY) |
void | showCursor () |
void | hideCursor () |
bool | isCursorVisible () const |
void | clearAnim (ANIObject &anim) |
void | drawAnim (ANIObject &anim) |
void | redrawAnim (ANIObject &anim) |
void | clearAnim (const ANIList &anims) |
void | drawAnim (const ANIList &anims) |
void | redrawAnim (const ANIList &anims) |
void | loadAnims (ANIList &anims, ANIFile &ani, uint count, const AnimProperties *props) const |
void | freeAnims (ANIList &anims) const |
void | setAnim (ANIObject &anim, const AnimProperties &props) const |
void | endFrame (bool doInput) |
void | loadSounds (const char *const *sounds, uint soundCount) |
void | freeSounds () |
void | playSound (uint sound, int16 frequency=0, int16 repCount=0) |
void | stopSound () |
void | playSoundFile (const Common::String &file, int16 frequency=0, int16 repCount=0, bool interruptible=true) |
void | beep (int16 frequency, int32 length) |
int16 | checkInput (int16 &mouseX, int16 &mouseY, MouseButtons &mouseButtons) |
int16 | waitInput (int16 &mouseX, int16 &mouseY, MouseButtons &mouseButtons) |
int16 | waitInput () |
bool | hasInput () |
Common::String | getLocFile (const Common::String &file) const |
TXTFile * | loadTXT (const Common::String &txtFile, TXTFile::Format format) const |
virtual void | fixTXTStrings (TXTFile &txt) const |
GCTFile * | loadGCT (const Common::String &gctFile) const |
Protected Attributes | |
GobEngine * | _vm |
Static Protected Attributes | |
static const char | kLanguageSuffixShort [5] |
static const char * | kLanguageSuffixLong [5] |
|
protected |
Initialize the game screen.
|
protected |
Change the palette.
Change the palette.
palette | The palette to change to. |
size | Size of the palette in colors. |
|
protected |
Add a new cursor that can be manipulated to the stack.
|
protected |
Remove the top-most cursor from the stack.
|
protected |
Set the current cursor.
|
protected |
Set the current cursor.
|
protected |
Show the cursor.
|
protected |
Hide the cursor.
|
protected |
Is the cursor currently visible?
|
protected |
Remove an animation from the screen.
|
protected |
Draw an animation to the screen, advancing it.
|
protected |
Clear and draw an animation to the screen, advancing it.
|
protected |
Remove animations from the screen.
|
protected |
Draw animations to the screen, advancing them.
|
protected |
Clear and draw animations to the screen, advancing them.
|
protected |
Wait for the frame to end, handling screen updates and optionally update input.
|
protected |
Load all sounds that can be played interactively in the game.
|
protected |
Free all loaded sound.
|
protected |
Play a loaded sound.
|
protected |
Stop all sound playback.
|
protected |
Play a sound until it ends or is interrupted by a keypress.
|
protected |
Beep the PC speaker.
|
protected |
Check mouse and keyboard input.
|
protected |
Wait for mouse or keyboard input.
|
protected |
Wait for mouse or keyboard input, but don't care about what was done with the mouse.
|
protected |
Did we have mouse or keyboard input?
|
protected |
Get the name of a localized file.
|
protected |
Open a TXT file.
|
protectedvirtual |
Called by loadTXT() to fix strings within the TXT file.