Game Members

Punkman X1 API |

# Game Members

Game overview

#### Public Static Fields

LogFile | Log file
paused | is game paused?
running | is game running?

#### Public Static Methods

GetDataFilePath | Retrun path to data directory
Main | The BiG MAiN
Time | Get game time (pause orthogonal)

#### Private Static Constructor

Game Constructor | Initializes the static fields of the Game class.

#### Private Static Fields

god | Is GOD mode ON?
pauseDelta | the pause delta

#### Public Instance Constructors

Game Constructor | Constructor

#### Public Instance Methods

EndLevel | Called when level finished
Init | Initialize graphics
LoadMap | Load new map
OnCreateData | after device reset resincarnation
OnCreateDevice | Create data vertex buffer
OnResetDevice | Reincarnate after device reset
Pause | Pause Game
PlayerDeath | Called after player's death
PlayLevel | Play level
Render | Setup all and draw whole game screen
RenderAll | draw whole game screen
RenderHUD | Draw HUD
ResetMap | Reset map (on player dead)
Run | Run game (main menu)
RunGame | run game
Score | Get player score
SFXPlay | Player sound effect
UnPause | UnPause game

#### Protected Instance Methods

Dispose | Dispose game resources.
HandleEvents | Read keys events
OnPaint | On paint (form) event handler

#### Private Instance Fields

__frames | Delta frames until last FPS measure
__fullscreen |
__lastFps | Last FPS count
__lastFpsTime | Last time the FPS counter was update.
__pauseStart | Pause delta time
camLastTime | Last time of camera update
camPos | Last position of camer
data |
display | Direct3D device
entityMgr | The entity manager
fps | Show FPS counter in HUD?
fullscreen | Full screen mode
HudFont | HUD font
hudLiveTex | Texture for lives
hudPointTex | Texture for C2H5OH-bar
hudTemplate | HUD background
hudTexx |
jukebox | MP3 Jukebox
keyboard | DirectInput keyboard
map | Current map
punker | Player object
sfx | Sound Effects Engine
texMgr | Map texture manager
topscore | Top Score Manager
vbHUD | Vertex buffer for HUD

#### Private Instance Methods

FPS | Get real FPS count and update FPS counter attributes
InitHUD | Initialize HUD attributes
OnCreateHUDVertexBuffer | Create HUD vertex buffer
SetupLights | Setup lights
SetupMatrices | Setup transform matricies
SetupTexture | Setup texture options
SwitchFullscreen |

#### See Also

Game Class | PunkMan.Game Namespace