C# Class ArcadeRPG.GameEngine

This is the GameEngine
Afficher le fichier Open project: jkeech/Super-Space-Escape Class Usage Examples

Méthodes publiques

Свойство Type Description
currTime TimeSpan
gameEnded bool
hurt_time int
levelnum int
livesRemaining int

Méthodes publiques

Méthode Description
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void

This is called when the game should draw itself.

GameEngine ( ArcadeRPG.TimeExpired t, GameOver g ) : System
Initialize ( ) : void

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.

LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void

LoadContent will be called once per game and is the place to load all of your content.

LoadLevel ( int level_num ) : void
UnloadContent ( ) : void

UnloadContent will be called once per game and is the place to unload all content.

Update ( GameTime gameTime ) : void

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.

die ( ) : void
drawItems ( SpriteBatch sb, SpriteFont sf ) : void
hasMoreLives ( ) : Boolean
hasTimeLeft ( ) : bool
resetTimer ( ) : void
testAtExit ( int x, int y ) : bool

Method Details

Draw() public méthode

This is called when the game should draw itself.
public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

GameEngine() public méthode

public GameEngine ( ArcadeRPG.TimeExpired t, GameOver g ) : System
t ArcadeRPG.TimeExpired
g GameOver
Résultat System

Initialize() public méthode

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
public Initialize ( ) : void
Résultat void

LoadContent() public méthode

LoadContent will be called once per game and is the place to load all of your content.
public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
Content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

LoadLevel() public méthode

public LoadLevel ( int level_num ) : void
level_num int
Résultat void

UnloadContent() public méthode

UnloadContent will be called once per game and is the place to unload all content.
public UnloadContent ( ) : void
Résultat void

Update() public méthode

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
public Update ( GameTime gameTime ) : void
gameTime GameTime Provides a snapshot of timing values.
Résultat void

die() public méthode

public die ( ) : void
Résultat void

drawItems() public méthode

public drawItems ( SpriteBatch sb, SpriteFont sf ) : void
sb SpriteBatch
sf SpriteFont
Résultat void

hasMoreLives() public méthode

public hasMoreLives ( ) : Boolean
Résultat Boolean

hasTimeLeft() public méthode

public hasTimeLeft ( ) : bool
Résultat bool

resetTimer() public méthode

public resetTimer ( ) : void
Résultat void

testAtExit() public méthode

public testAtExit ( int x, int y ) : bool
x int
y int
Résultat bool

Property Details

currTime public_oe property

public TimeSpan currTime
Résultat TimeSpan

gameEnded public_oe property

public bool gameEnded
Résultat bool

hurt_time public_oe property

public int hurt_time
Résultat int

levelnum public_oe property

public int levelnum
Résultat int

livesRemaining public_oe property

public int livesRemaining
Résultat int