ScummVM API documentation
Gob::Util Class Reference

Classes

struct  List
 
struct  ListNode
 

Public Member Functions

uint32 getTimeKey ()
 
int16 getRandom (int16 max)
 
void beep (int16 freq)
 
void notifyPaused (uint32 duration)
 
void delay (uint16 msecs)
 
void longDelay (uint16 msecs)
 
void initInput ()
 
void processInput (bool scroll=false)
 
void clearKeyBuf ()
 
int16 getKey ()
 
int16 checkKey ()
 
bool checkKey (int16 &key)
 
bool keyPressed ()
 
uint32 getKeyState () const
 
void getMouseState (int16 *pX, int16 *pY, MouseButtons *pButtons)
 
void setMousePos (int16 x, int16 y)
 
void waitMouseUp ()
 
void waitMouseDown ()
 
void waitMouseRelease (char drawMouse)
 
void forceMouseUp (bool onlyWhenSynced=false)
 
void clearPalette ()
 
int16 getFrameRate ()
 
void setFrameRate (int16 rate)
 
void notifyNewAnim ()
 
void waitEndFrame (bool handleInput=true)
 
void setScrollOffset (int16 x=-1, int16 y=-1)
 
 Util (GobEngine *vm)
 

Static Public Member Functions

static void insertStr (const char *str1, char *str2, int16 pos)
 
static void cutFromStr (char *str, int16 from, int16 cutlen)
 
static void cleanupStr (char *str)
 
static void replaceChar (char *str, char c1, char c2)
 
static void listInsertFront (List *list, void *data)
 
static void listInsertBack (List *list, void *data)
 
static void listDropFront (List *list)
 
static void deleteList (List *list)
 
static Common::String setExtension (const Common::String &str, const Common::String &ext)
 
static Common::String readString (Common::SeekableReadStream &stream, int n)
 
static char toCP850Lower (char cp850)
 
static char toCP850Upper (char cp850)
 

Protected Member Functions

bool keyBufferEmpty ()
 
void addKeyToBuffer (const Common::KeyState &key)
 
bool getKeyFromBuffer (Common::KeyState &key)
 
int16 translateKey (const Common::KeyState &key)
 
int16 toCP850 (uint16 latin1)
 
void checkJoystick ()
 
void keyDown (const Common::Event &event)
 
void keyUp (const Common::Event &event)
 

Protected Attributes

MouseButtons _mouseButtons
 
Common::KeyState _keyBuffer [16]
 
int16 _keyBufferHead
 
int16 _keyBufferTail
 
uint8 _fastMode
 
int16 _frameRate
 
int16 _frameWaitTime
 
uint32 _startFrameTime
 
uint32 _keyState
 
GobEngine_vm
 

Member Function Documentation

◆ readString()

static Common::String Gob::Util::readString ( Common::SeekableReadStream stream,
int  n 
)
static

Read a constant-length string out of a stream.

◆ toCP850Lower()

static char Gob::Util::toCP850Lower ( char  cp850)
static

Convert a character in CP850 encoding to the equivalent lower case character.

◆ toCP850Upper()

static char Gob::Util::toCP850Upper ( char  cp850)
static

Convert a character in CP850 encoding to the equivalent upper case character.


The documentation for this class was generated from the following file: