C# Class CrisisAtSwissStation.GameEngine

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

Public Properties

Property 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

Public Methods

Method 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

Protected Methods

Method 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

Method Description
DrawSuccessOrFail ( ) : void
GameEngine ( ) : System
LoadNextWorld ( ) : void
SetCurrentMenu ( MenuEngine menu ) : void

Sets the current menu

Method Details

Draw() protected method

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.
return void

EnableNextFloor() public method

public EnableNextFloor ( ) : void
return void

EnterMenu() public static method

public static EnterMenu ( ) : void
return void

ExitGame() public method

public ExitGame ( ) : void
return void

GetCurrDir() public static method

public static GetCurrDir ( ) : string
return string

Initialize() protected method

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
return void

InitializeMenus() public method

Initialize the game menus
public InitializeMenus ( ) : void
return void

LinkToFloors() public static method

public static LinkToFloors ( ) : void
return void

LinkToMain() public static method

public static LinkToMain ( ) : void
return void

LinkToRooms() public static method

public static LinkToRooms ( ) : void
return void

LoadCompleted() public method

public LoadCompleted ( ) : void
return void

LoadContent() protected method

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

LoadRelWorld() public method

public LoadRelWorld ( string worldname ) : bool
worldname string
return bool

LoadWorld() public method

public LoadWorld ( ) : bool
return bool

LoadWorld() public method

public LoadWorld ( string worldpath ) : bool
worldpath string
return bool

NewWorld() public method

public NewWorld ( ) : bool
return bool

UnloadContent() protected method

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

Update() protected method

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.
return void

resetVictoryAnimation() public static method

public static resetVictoryAnimation ( ) : void
return void

Property Details

coreRoomsScreen public_oe static_oe property

public static MenuScreen,CrisisAtSwissStation coreRoomsScreen
return MenuScreen

engineeringRoomsScreen public_oe static_oe property

public static MenuScreen,CrisisAtSwissStation engineeringRoomsScreen
return MenuScreen

floorsScreen public_oe static_oe property

public static MenuScreen,CrisisAtSwissStation floorsScreen
return MenuScreen

introductionRoomsScreen public_oe static_oe property

public static MenuScreen,CrisisAtSwissStation introductionRoomsScreen
return MenuScreen

lastFloorPlayed public_oe static_oe property

public static int lastFloorPlayed
return int

level_editor_open public_oe static_oe property

public static bool level_editor_open
return bool

menuBack public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics menuBack
return Microsoft.Xna.Framework.Graphics.Texture2D

menuPanel public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics menuPanel
return Microsoft.Xna.Framework.Graphics.Texture2D

menuPanelAnimation public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics menuPanelAnimation
return Microsoft.Xna.Framework.Graphics.Texture2D

onepixel public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics onepixel
return Microsoft.Xna.Framework.Graphics.Texture2D

pauseScreen public_oe static_oe property

public static MenuScreen,CrisisAtSwissStation pauseScreen
return MenuScreen

recreationRoomsScreen public_oe static_oe property

public static MenuScreen,CrisisAtSwissStation recreationRoomsScreen
return MenuScreen

savedgame public_oe static_oe property

public static SavedGame,CrisisAtSwissStation savedgame
return SavedGame