Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Engine Class Reference

#include <CEngine.h>

List of all members.

Public Member Functions

bool isKey (int key)
void clearKey (int key)
 Engine ()
void destroy ()
void getInput ()
int getMouseX ()
int getMouseY ()
bool getJoyLeft ()
bool getJoyRight ()
bool getJoyUp ()
bool getJoyDown ()
int getJoyX (int max)
int getJoyY (int max)
void lockJoy (Uint32 ticks)
void setMouse (int x, int y)
bool userAccepts ()
bool loadJoystickConfig ()
bool saveJoystickConfig ()
bool loadKeyConfig ()
bool saveKeyConfig ()
void restoreKeyDefaults ()
bool getKeyState (int key)
void setKeyState (int key)
void doPause ()
void clearCheatVars ()
bool compareLastKeyInputs ()
void addKeyEvent ()
void flushInput ()
void clearInput ()
void setUserHome (char *path)
PakgetPak ()
bool unpack (char *filename, int fileType)
bool loadData (char *filename)
void reportFontFailure ()
void setPlayerPosition (int x, int y, int limitLeft, int limitRight, int limitUp, int limitDown)
int getFrameLoop ()
void doFrameLoop ()
void doTimeDifference ()
float getTimeDifference ()
void resetTimeDifference ()
void setInfoMessage (char *message, int priority, int type)
void deleteWidgets ()
void addWidget (Widget *widget)
bool loadWidgets (char *filename)
WidgetgetWidgetByName (char *name)
void showWidgetGroup (char *groupName, bool show)
void enableWidgetGroup (char *groupName, bool show)
void showWidget (char *name, bool show)
void enableWidget (char *name, bool enable)
void setWidgetVariable (char *name, int *variable)
bool widgetChanged (char *name)
void highlightWidget (int dir)
void highlightWidget (char *name)
int processWidgets ()
bool loadDefines ()
int getValueOfDefine (char *word)
char * getDefineOfValue (char *prefix, int value)
int getValueOfFlagTokens (char *line)

Public Attributes

int extremeAvailable
char keyState [350]
char mouseLeft
char mouseRight
SDL_Joystick * joystick [2]
Joystick joypad
Keyboard keyboard
bool waitForButton
bool waitForKey
bool allowJoypad
bool paused
bool saveConfig
bool allowQuit
char userHomeDirectory [PATH_MAX]
int useAudio
int fullScreen
int skill
bool practice
bool devNoMonsters
SDL_RWops * sdlrw
unsigned char * binaryBuffer
unsigned char * dataBuffer
int messageTime
int messagePriority
int messageType
char message [100]
char saveSlot [10][50]
int continueSaveSlot
int playerPosX
int playerPosY
List widgetList
WidgethighlightedWidget
Entity world
List defineList
bool cheats
int cheatHealth
int cheatExtras
int cheatFuel
int cheatLevels
int cheatBlood
int cheatInvulnerable
int cheatReload
int cheatSpeed
int cheatSkipLevel

Private Attributes

SDL_Event event
signed char frameLoop
int mouseX
int mouseY
unsigned int time1
unsigned int time2
float timeDifference
char lastKeyPressed [25]
char lastKeyEvents [25]
int lastButtonPressed
Pak pak
int joyX
int joyY
Uint32 joyNavAvail


Constructor & Destructor Documentation

Engine::Engine  ) 
 


Member Function Documentation

void Engine::addKeyEvent  ) 
 

void Engine::addWidget Widget widget  ) 
 

void Engine::clearCheatVars  ) 
 

void Engine::clearInput  ) 
 

void Engine::clearKey int  key  ) 
 

bool Engine::compareLastKeyInputs  ) 
 

void Engine::deleteWidgets  ) 
 

void Engine::destroy  ) 
 

void Engine::doFrameLoop  ) 
 

void Engine::doPause  ) 
 

void Engine::doTimeDifference  ) 
 

void Engine::enableWidget char *  name,
bool  enable
 

void Engine::enableWidgetGroup char *  groupName,
bool  show
 

void Engine::flushInput  ) 
 

char * Engine::getDefineOfValue char *  prefix,
int  value
 

int Engine::getFrameLoop  ) 
 

void Engine::getInput  ) 
 

bool Engine::getJoyDown  ) 
 

bool Engine::getJoyLeft  ) 
 

bool Engine::getJoyRight  ) 
 

bool Engine::getJoyUp  ) 
 

int Engine::getJoyX int  max  ) 
 

int Engine::getJoyY int  max  ) 
 

bool Engine::getKeyState int  key  ) 
 

int Engine::getMouseX  ) 
 

int Engine::getMouseY  ) 
 

Pak * Engine::getPak  ) 
 

float Engine::getTimeDifference  ) 
 

int Engine::getValueOfDefine char *  word  ) 
 

int Engine::getValueOfFlagTokens char *  line  ) 
 

Widget * Engine::getWidgetByName char *  name  ) 
 

void Engine::highlightWidget char *  name  ) 
 

void Engine::highlightWidget int  dir  ) 
 

bool Engine::isKey int  key  ) 
 

bool Engine::loadData char *  filename  ) 
 

bool Engine::loadDefines  ) 
 

bool Engine::loadJoystickConfig  ) 
 

bool Engine::loadKeyConfig  ) 
 

bool Engine::loadWidgets char *  filename  ) 
 

void Engine::lockJoy Uint32  ticks  ) 
 

int Engine::processWidgets  ) 
 

void Engine::reportFontFailure  ) 
 

void Engine::resetTimeDifference  ) 
 

void Engine::restoreKeyDefaults  ) 
 

bool Engine::saveJoystickConfig  ) 
 

bool Engine::saveKeyConfig  ) 
 

void Engine::setInfoMessage char *  message,
int  priority,
int  type
 

void Engine::setKeyState int  key  ) 
 

void Engine::setMouse int  x,
int  y
 

void Engine::setPlayerPosition int  x,
int  y,
int  limitLeft,
int  limitRight,
int  limitUp,
int  limitDown
 

void Engine::setUserHome char *  path  ) 
 

void Engine::setWidgetVariable char *  name,
int *  variable
 

void Engine::showWidget char *  name,
bool  show
 

void Engine::showWidgetGroup char *  groupName,
bool  show
 

bool Engine::unpack char *  filename,
int  fileType
 

bool Engine::userAccepts  ) 
 

bool Engine::widgetChanged char *  name  ) 
 


Member Data Documentation

bool Engine::allowJoypad
 

bool Engine::allowQuit
 

unsigned char* Engine::binaryBuffer
 

int Engine::cheatBlood
 

int Engine::cheatExtras
 

int Engine::cheatFuel
 

int Engine::cheatHealth
 

int Engine::cheatInvulnerable
 

int Engine::cheatLevels
 

int Engine::cheatReload
 

bool Engine::cheats
 

int Engine::cheatSkipLevel
 

int Engine::cheatSpeed
 

int Engine::continueSaveSlot
 

unsigned char* Engine::dataBuffer
 

List Engine::defineList
 

bool Engine::devNoMonsters
 

SDL_Event Engine::event [private]
 

int Engine::extremeAvailable
 

signed char Engine::frameLoop [private]
 

int Engine::fullScreen
 

Widget* Engine::highlightedWidget
 

Uint32 Engine::joyNavAvail [private]
 

Joystick Engine::joypad
 

SDL_Joystick* Engine::joystick[2]
 

int Engine::joyX [private]
 

int Engine::joyY [private]
 

Keyboard Engine::keyboard
 

char Engine::keyState[350]
 

int Engine::lastButtonPressed [private]
 

char Engine::lastKeyEvents[25] [private]
 

char Engine::lastKeyPressed[25] [private]
 

char Engine::message[100]
 

int Engine::messagePriority
 

int Engine::messageTime
 

int Engine::messageType
 

char Engine::mouseLeft
 

char Engine::mouseRight
 

int Engine::mouseX [private]
 

int Engine::mouseY [private]
 

Pak Engine::pak [private]
 

bool Engine::paused
 

int Engine::playerPosX
 

int Engine::playerPosY
 

bool Engine::practice
 

bool Engine::saveConfig
 

char Engine::saveSlot[10][50]
 

SDL_RWops* Engine::sdlrw
 

int Engine::skill
 

unsigned int Engine::time1 [private]
 

unsigned int Engine::time2 [private]
 

float Engine::timeDifference [private]
 

int Engine::useAudio
 

char Engine::userHomeDirectory[PATH_MAX]
 

bool Engine::waitForButton
 

bool Engine::waitForKey
 

List Engine::widgetList
 

Entity Engine::world
 


The documentation for this class was generated from the following files:
Generated on Thu Dec 2 20:26:04 2004 for Blob Wars : Metal Blob Solid by doxygen 1.3.7