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.
Exibir arquivo Open project: Bacon41/PantheonPrototype Class Usage Examples

Public Properties

Property Type Description
objectives List

Public Methods

Method 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 method

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

Quest() public method

public Quest ( ) : System
return System

Update() public method

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

setCurrentObjective() public method

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

Property Details

objectives public_oe property

The objectives for this quest.
public List objectives
return List