class GameSession

This class represent Game session

Public Fields

[more]list<Bullet *> ActiveBullet
The list of all the active bullets
[more]list<Ast*> ActiveAst
The list of all the active Asteroid
[more]list<GameObj *> ActiveObj
The list of all the generic active objects
[more]Ship* S
The only Spaceship in game.
[more]int ScreenW
Screen Width
[more]int ScreenH
Screen Height
[more]int SpaceSize
The size of the Game Space (in mt)

Public Methods

[more]void Update(int dt)
This function updates All the active objects
[more]void Draw()
This function draws all the active objects
[more]void Clip(Point3f &p)
This function clip the position of an object against the screen boundary
[more]void CheckCollisions()
This function Check ALL the possible collisions
[more]void Shoot()
Shoot a bullet
[more]void Start()
Start the game
[more]void Pause()
Pause the game
[more]void End()
Game Over;

Documentation

This class represent Game session. It contain all the data needed during the game play, active game objects, score, lives and so on.
olist<Bullet *> ActiveBullet
The list of all the active bullets

olist<Ast*> ActiveAst
The list of all the active Asteroid

olist<GameObj *> ActiveObj
The list of all the generic active objects

oShip* S
The only Spaceship in game.

ovoid Update(int dt)
This function updates All the active objects

ovoid Draw()
This function draws all the active objects

ovoid Clip(Point3f &p)
This function clip the position of an object against the screen boundary

ovoid CheckCollisions()
This function Check ALL the possible collisions

ovoid Shoot()
Shoot a bullet. What kind of bullet is shot depends on the current type of ship stored in member S;

ovoid Start()
Start the game

ovoid Pause()
Pause the game

ovoid End()
Game Over;

oint ScreenW
Screen Width

oint ScreenH
Screen Height

oint SpaceSize
The size of the Game Space (in mt)


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.