C# Class PantheonPrototype.Quest

Contains all the objectives relevant to a given Quest. Basically goes from objective to objective, updating itself according to the current objective and the incoming event.
Afficher le fichier Open project: Bacon41/PantheonPrototype Class Usage Examples

Méthodes publiques

Свойство Type Description
objectives List

Méthodes publiques

Méthode Description
Initialize ( Pantheon gameReference ) : void

Initializes all current objectives and sets the current objective to the first one given.

Quest ( ) : System
Update ( GameTime gameTime, Pantheon gameReference ) : void

Checks to see if any of the current objectives need to be registered or deregistered for events.

setCurrentObjective ( int index ) : void

Adds the specified index to the current objective list. Note: Assumes that the objective has already been initialized.

Method Details

Initialize() public méthode

Initializes all current objectives and sets the current objective to the first one given.
public Initialize ( Pantheon gameReference ) : void
gameReference Pantheon Game reference... why not.
Résultat void

Quest() public méthode

public Quest ( ) : System
Résultat System

Update() public méthode

Checks to see if any of the current objectives need to be registered or deregistered for events.
public Update ( GameTime gameTime, Pantheon gameReference ) : void
gameTime Microsoft.Xna.Framework.GameTime Time since the last update cycle.
gameReference Pantheon
Résultat void

setCurrentObjective() public méthode

Adds the specified index to the current objective list. Note: Assumes that the objective has already been initialized.
public setCurrentObjective ( int index ) : void
index int The index indicating the objective to add from the objective list.
Résultat void

Property Details

objectives public_oe property

The objectives for this quest.
public List objectives
Résultat List