C# Class ZombieShooter.Game

Inheritance: Microsoft.Xna.Framework.Game
Show file Open project: Spectrewiz/Zombie-Shooter Class Usage Examples

Public Properties

Property Type Description
camera Camera
cursor Obj
graphics GraphicsDeviceManager
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont
stage Microsoft.Xna.Framework.Rectangle
t Thread[]

Protected Properties

Property Type Description
gameState GameState

Public Methods

Method Description
Game ( ) : System
getCameraPosition ( ) : Vector2
getCursorPosition ( ) : Vector2
getGameState ( ) : GameState
switchGameState ( GameState newGameState ) : void
switchGameState ( int index ) : void

Protected Methods

Method Description
Draw ( GameTime gameTime ) : void
Initialize ( ) : void
LoadContent ( ) : void
UnloadContent ( ) : void
Update ( GameTime gameTime ) : void

Method Details

Draw() protected method

protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Game() public method

public Game ( ) : System
return System

Initialize() protected method

protected Initialize ( ) : void
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

UnloadContent() protected method

protected UnloadContent ( ) : void
return void

Update() protected method

protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

getCameraPosition() public static method

public static getCameraPosition ( ) : Vector2
return Vector2

getCursorPosition() public static method

public static getCursorPosition ( ) : Vector2
return Vector2

getGameState() public static method

public static getGameState ( ) : GameState
return GameState

switchGameState() public static method

public static switchGameState ( GameState newGameState ) : void
newGameState GameState
return void

switchGameState() public static method

public static switchGameState ( int index ) : void
index int
return void

Property Details

camera public static property

public static Camera,ZombieShooter camera
return Camera

cursor public static property

public static Obj,ZombieShooter cursor
return Obj

gameState protected static property

protected static GameState gameState
return GameState

graphics public static property

public static GraphicsDeviceManager graphics
return GraphicsDeviceManager

spriteFont public static property

public static SpriteFont,Microsoft.Xna.Framework.Graphics spriteFont
return Microsoft.Xna.Framework.Graphics.SpriteFont

stage public static property

public static Rectangle,Microsoft.Xna.Framework stage
return Microsoft.Xna.Framework.Rectangle

t public static property

public static Thread[] t
return Thread[]