C# Class PantheonPrototype.Pantheon

This is the main type for your game
Inheritance: Microsoft.Xna.Framework.Game
Mostrar archivo Open project: Bacon41/PantheonPrototype Class Usage Examples

Public Properties

Property Type Description
ControlManager ControlManager
CutsceneManager CutsceneManager
EventManager EventManager
QuestManager QuestManager
audioManager AudioManager
currentLevel Level
player Entity
rand System.Random
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

Public Methods

Method Description
GetCamera ( ) : Camera

Public method to allow access to the level's Camera object.

Pantheon ( ) : System
graphics_PreparingDeviceSettings ( object sender, Microsoft.Xna.Framework.PreparingDeviceSettingsEventArgs e ) : void

This is the code to set the window size to the display size.

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

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

GetCamera() public method

Public method to allow access to the level's Camera object.
public GetCamera ( ) : Camera
return Camera

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

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

Pantheon() public method

public Pantheon ( ) : System
return System

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

graphics_PreparingDeviceSettings() public method

This is the code to set the window size to the display size.
public graphics_PreparingDeviceSettings ( object sender, Microsoft.Xna.Framework.PreparingDeviceSettingsEventArgs e ) : void
sender object I'm not really sure.
e Microsoft.Xna.Framework.PreparingDeviceSettingsEventArgs This stores the information about the actual screen hardware.
return void

Property Details

ControlManager public_oe property

public ControlManager,PantheonPrototype ControlManager
return ControlManager

CutsceneManager public_oe property

public CutsceneManager,PantheonPrototype CutsceneManager
return CutsceneManager

EventManager public_oe property

public EventManager,PantheonPrototype EventManager
return EventManager

QuestManager public_oe property

public QuestManager,PantheonPrototype QuestManager
return QuestManager

audioManager public_oe property

public AudioManager,PantheonPrototype audioManager
return AudioManager

currentLevel public_oe property

public Level,PantheonPrototype currentLevel
return Level

player public_oe property

public Entity player
return Entity

rand public_oe property

public Random,System rand
return System.Random

spriteBatch public_oe property

public SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
return Microsoft.Xna.Framework.Graphics.SpriteBatch