Main Page   Class Hierarchy   Compound List   File List   Compound Members  

Perihelion Class Reference

Main class of the game. More...

#include <perihelion.h>

Collaboration diagram for Perihelion:

Collaboration graph
[legend]
List of all members.

Public Types

enum  screens { START, NEW_PLAYER, CONTINUE, PREFERENCES }
enum  colors { RED, BLUE, GREEN, YELLOW }
enum  races { PANTYCIAN }

Public Methods

 Perihelion ()
 Perihelion (bool fullscreen)
 ~Perihelion ()
void runGUI ()

Private Methods

void commonInit ()
 Common initialization stuff.

void draw ()
void drawStartS (SDL_Surface *screen)
void drawNewPlayerS (SDL_Surface *screen)
void drawContinueS (SDL_Surface *screen)
void drawPreferencesS (SDL_Surface *screen)
void loadData ()
void newGame ()
void unloadData ()
void processDown ()
void processKey (SDL_keysym keysym)
void processLeft ()
void processRight ()
void processReturn ()
void processUp ()
void processDownSS ()
void processReturnSS ()
void processUpSS ()
void processDownNPS ()
void processLeftNPS ()
void processRightNPS ()
void processReturnNPS ()
void processUpNPS ()
void processDownCS ()
void processReturnCS ()
void processUpCS ()
void processDownPS ()
void processReturnPS ()
void processUpPS ()

Private Attributes

Graphics graphics
Sound sound
int currentButton
bool quitProgram
screens currentScreen
string playerName
string serverName
colors playerColor
races playerRace
SDL_Surface * SS
SDL_Surface * SSButtons
SDL_Surface * NPS
SDL_Surface * NPSButtons
SDL_Surface * NPSColors
SDL_Surface * CommonButtons
SDL_Surface * CS
SDL_Surface * Preferences

Detailed Description

Main class of the game.

This class initializes everything and run the initial menus. When a new game is requested, it creates a instance of GameEngine and run the game.


The documentation for this class was generated from the following files:
Generated on Thu Jun 6 17:22:23 2002 for Perihelion by doxygen1.2.15