C# Class CrisisAtSwissStation.GameEngine

This is the main type for your game
Inheritance: Microsoft.Xna.Framework.Game
Afficher le fichier Open project: danielpcox/Crisis-at-Swiss-Station

Méthodes publiques

Свойство Type Description
coreRoomsScreen MenuScreen
engineeringRoomsScreen MenuScreen
floorsScreen MenuScreen
introductionRoomsScreen MenuScreen
lastFloorPlayed int
level_editor_open bool
menuBack Microsoft.Xna.Framework.Graphics.Texture2D
menuPanel Microsoft.Xna.Framework.Graphics.Texture2D
menuPanelAnimation Microsoft.Xna.Framework.Graphics.Texture2D
onepixel Microsoft.Xna.Framework.Graphics.Texture2D
pauseScreen MenuScreen
recreationRoomsScreen MenuScreen
savedgame SavedGame

Méthodes publiques

Méthode Description
EnableNextFloor ( ) : void
EnterMenu ( ) : void
ExitGame ( ) : void
GetCurrDir ( ) : string
InitializeMenus ( ) : void

Initialize the game menus

LinkToFloors ( ) : void
LinkToMain ( ) : void
LinkToRooms ( ) : void
LoadCompleted ( ) : void
LoadRelWorld ( string worldname ) : bool
LoadWorld ( ) : bool
LoadWorld ( string worldpath ) : bool
NewWorld ( ) : bool
resetVictoryAnimation ( ) : 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.

Private Methods

Méthode Description
DrawSuccessOrFail ( ) : void
GameEngine ( ) : System
LoadNextWorld ( ) : void
SetCurrentMenu ( MenuEngine menu ) : void

Sets the current menu

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

EnableNextFloor() public méthode

public EnableNextFloor ( ) : void
Résultat void

EnterMenu() public static méthode

public static EnterMenu ( ) : void
Résultat void

ExitGame() public méthode

public ExitGame ( ) : void
Résultat void

GetCurrDir() public static méthode

public static GetCurrDir ( ) : string
Résultat string

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

InitializeMenus() public méthode

Initialize the game menus
public InitializeMenus ( ) : void
Résultat void

LinkToFloors() public static méthode

public static LinkToFloors ( ) : void
Résultat void

LinkToMain() public static méthode

public static LinkToMain ( ) : void
Résultat void

LinkToRooms() public static méthode

public static LinkToRooms ( ) : void
Résultat void

LoadCompleted() public méthode

public LoadCompleted ( ) : 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

LoadRelWorld() public méthode

public LoadRelWorld ( string worldname ) : bool
worldname string
Résultat bool

LoadWorld() public méthode

public LoadWorld ( ) : bool
Résultat bool

LoadWorld() public méthode

public LoadWorld ( string worldpath ) : bool
worldpath string
Résultat bool

NewWorld() public méthode

public NewWorld ( ) : bool
Résultat bool

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

resetVictoryAnimation() public static méthode

public static resetVictoryAnimation ( ) : void
Résultat void

Property Details

coreRoomsScreen public_oe static_oe property

public static MenuScreen,CrisisAtSwissStation coreRoomsScreen
Résultat MenuScreen

engineeringRoomsScreen public_oe static_oe property

public static MenuScreen,CrisisAtSwissStation engineeringRoomsScreen
Résultat MenuScreen

floorsScreen public_oe static_oe property

public static MenuScreen,CrisisAtSwissStation floorsScreen
Résultat MenuScreen

introductionRoomsScreen public_oe static_oe property

public static MenuScreen,CrisisAtSwissStation introductionRoomsScreen
Résultat MenuScreen

lastFloorPlayed public_oe static_oe property

public static int lastFloorPlayed
Résultat int

level_editor_open public_oe static_oe property

public static bool level_editor_open
Résultat bool

menuBack public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics menuBack
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

menuPanel public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics menuPanel
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

menuPanelAnimation public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics menuPanelAnimation
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

onepixel public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics onepixel
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

pauseScreen public_oe static_oe property

public static MenuScreen,CrisisAtSwissStation pauseScreen
Résultat MenuScreen

recreationRoomsScreen public_oe static_oe property

public static MenuScreen,CrisisAtSwissStation recreationRoomsScreen
Résultat MenuScreen

savedgame public_oe static_oe property

public static SavedGame,CrisisAtSwissStation savedgame
Résultat SavedGame