C# Класс PantheonPrototype.Pantheon

This is the main type for your game
Наследование: Microsoft.Xna.Framework.Game
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ControlManager ControlManager
CutsceneManager CutsceneManager
EventManager EventManager
QuestManager QuestManager
audioManager AudioManager
currentLevel Level
player Entity
rand System.Random
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
StartGame ( ) : void

Описание методов

Draw() защищенный Метод

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.
Результат void

GetCamera() публичный Метод

Public method to allow access to the level's Camera object.
public GetCamera ( ) : Camera
Результат Camera

Initialize() защищенный Метод

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
Результат void

LoadContent() защищенный Метод

LoadContent will be called once per game and is the place to load all of your content.
protected LoadContent ( ) : void
Результат void

Pantheon() публичный Метод

public Pantheon ( ) : System
Результат System

UnloadContent() защищенный Метод

UnloadContent will be called once per game and is the place to unload all content.
protected UnloadContent ( ) : void
Результат void

Update() защищенный Метод

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.
Результат void

graphics_PreparingDeviceSettings() публичный Метод

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.
Результат void

Описание свойств

ControlManager публичное свойство

public ControlManager,PantheonPrototype ControlManager
Результат ControlManager

CutsceneManager публичное свойство

public CutsceneManager,PantheonPrototype CutsceneManager
Результат CutsceneManager

EventManager публичное свойство

public EventManager,PantheonPrototype EventManager
Результат EventManager

QuestManager публичное свойство

public QuestManager,PantheonPrototype QuestManager
Результат QuestManager

audioManager публичное свойство

public AudioManager,PantheonPrototype audioManager
Результат AudioManager

currentLevel публичное свойство

public Level,PantheonPrototype currentLevel
Результат Level

player публичное свойство

public Entity player
Результат Entity

rand публичное свойство

public Random,System rand
Результат System.Random

spriteBatch публичное свойство

public SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
Результат Microsoft.Xna.Framework.Graphics.SpriteBatch