C# Class RecordRobot.Game1

This is the main type for your game
Inheritance: Microsoft.Xna.Framework.Game
Afficher le fichier Open project: scastle/EECS290_Project1 Class Usage Examples

Méthodes publiques

Свойство Type Description
CurrentLevel Level
ExitStatus bool
Font Microsoft.Xna.Framework.Graphics.SpriteFont
GamePaused bool
MainGame RecordRobot.Screens.WorldScreen
StartTime System.DateTime
SumTime System.TimeSpan
Time System.DateTime
content Microsoft.Xna.Framework.Content.ContentManager
rand System.Random
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
tr System.IO.TextReader

Méthodes publiques

Méthode Description
ExitGame ( ) : void
Game1 ( ) : System
GameOver ( ) : void
StartGame ( ) : void
ToTitle ( ) : void
Win ( ) : void
toSettings ( ) : void

Méthodes protégées

Méthode Description
Draw ( GameTime gameTime ) : void

This is called when the game should draw itself.

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 ( ) : void

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

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.

Method Details

Draw() protected méthode

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

ExitGame() public static méthode

public static ExitGame ( ) : void
Résultat void

Game1() public méthode

public Game1 ( ) : System
Résultat System

GameOver() public static méthode

public static GameOver ( ) : void
Résultat void

Initialize() protected 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.
protected Initialize ( ) : void
Résultat void

LoadContent() protected méthode

LoadContent will be called once per game and is the place to load all of your content.
protected LoadContent ( ) : void
Résultat void

StartGame() public static méthode

public static StartGame ( ) : void
Résultat void

ToTitle() public static méthode

public static ToTitle ( ) : void
Résultat void

UnloadContent() protected méthode

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

Update() protected méthode

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

Win() public static méthode

public static Win ( ) : void
Résultat void

toSettings() public static méthode

public static toSettings ( ) : void
Résultat void

Property Details

CurrentLevel public_oe static_oe property

public static Level CurrentLevel
Résultat Level

ExitStatus public_oe static_oe property

public static bool ExitStatus
Résultat bool

Font public_oe static_oe property

public static SpriteFont,Microsoft.Xna.Framework.Graphics Font
Résultat Microsoft.Xna.Framework.Graphics.SpriteFont

GamePaused public_oe static_oe property

public static bool GamePaused
Résultat bool

MainGame public_oe static_oe property

public static WorldScreen,RecordRobot.Screens MainGame
Résultat RecordRobot.Screens.WorldScreen

StartTime public_oe static_oe property

public static DateTime,System StartTime
Résultat System.DateTime

SumTime public_oe static_oe property

public static TimeSpan,System SumTime
Résultat System.TimeSpan

Time public_oe static_oe property

public static DateTime,System Time
Résultat System.DateTime

content public_oe static_oe property

public static ContentManager,Microsoft.Xna.Framework.Content content
Résultat Microsoft.Xna.Framework.Content.ContentManager

rand public_oe static_oe property

public static Random,System rand
Résultat System.Random

spriteBatch public_oe static_oe property

public static SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
Résultat Microsoft.Xna.Framework.Graphics.SpriteBatch

tr public_oe static_oe property

public static TextReader,System.IO tr
Résultat System.IO.TextReader