C# Class PantheonPrototype.Objective

Contains the individual logic for deciding if a condition has been met based on game events.
Afficher le fichier Open project: Bacon41/PantheonPrototype

Méthodes publiques

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

Protected Properties

Свойство Type Description
state condition

Méthodes publiques

Méthode Description
Complete ( ) : bool

Determines if an objective is complete.

HandleNotification ( Event eventinfo ) : void

An event handler meant to be registered with the event manager.

Initialize ( Pantheon gameReference ) : void

Sets the objective to a starting state. This way, an objective may be predictable when reused. Notably registers event handlers.

Objective ( int id ) : System

Constructor... yeah

Update ( GameTime gameTime ) : void

Used for time sensitive objectives.

WrapUp ( Pantheon gameReference ) : void

Called after the objective has been completed. Performs any transition events before the quest moves to the next objective. Notably cleans up registered event handlers.

Method Details

Complete() public méthode

Determines if an objective is complete.
public Complete ( ) : bool
Résultat bool

HandleNotification() public méthode

An event handler meant to be registered with the event manager.
public HandleNotification ( Event eventinfo ) : void
eventinfo Event The event data passed to the handler
Résultat void

Initialize() public méthode

Sets the objective to a starting state. This way, an objective may be predictable when reused. Notably registers event handlers.
public Initialize ( Pantheon gameReference ) : void
gameReference Pantheon A reference to the game so that the event /// manager is accessible. Also, other initializing actions may be taken.
Résultat void

Objective() public méthode

Constructor... yeah
public Objective ( int id ) : System
id int
Résultat System

Update() public méthode

Used for time sensitive objectives.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Time since the last update cycle.
Résultat void

WrapUp() public méthode

Called after the objective has been completed. Performs any transition events before the quest moves to the next objective. Notably cleans up registered event handlers.
public WrapUp ( Pantheon gameReference ) : void
gameReference Pantheon
Résultat void

Property Details

nextObjectives public_oe property

A list of objectives which should activate when this one is finished.
public List nextObjectives
Résultat List

state protected_oe property

protected condition state
Résultat condition