C# Class Project_Starfighter.GameScreen

This is a game component that implements IUpdateable.
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Afficher le fichier Open project: csce3513/Team15 Class Usage Examples

Protected Properties

Свойство Type Description
game Microsoft.Xna.Framework.Game
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

Méthodes publiques

Méthode Description
Draw ( GameTime gameTime ) : void

GameScreen ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch ) : System

Constructor for the Game Screen

Hide ( ) : void

Initialize ( ) : void

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.

Show ( ) : void

Update ( GameTime gameTime ) : void

Allows the game component to update itself.

Method Details

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

GameScreen() public méthode

Constructor for the Game Screen
public GameScreen ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch ) : System
game Microsoft.Xna.Framework.Game
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat System

Hide() public méthode

public Hide ( ) : void
Résultat void

Initialize() public méthode

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
public Initialize ( ) : void
Résultat void

Show() public méthode

public Show ( ) : void
Résultat void

Update() public méthode

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Résultat void

Property Details

game protected_oe property

protected Game,Microsoft.Xna.Framework game
Résultat Microsoft.Xna.Framework.Game

spriteBatch protected_oe property

protected SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
Résultat Microsoft.Xna.Framework.Graphics.SpriteBatch