C# Class PantheonPrototype.TriggerObjective

An objective tailored for tracking a trigger. Once activated, the objective waits until the player has entered the target trigger. The objective is then complete.
Inheritance: Objective
Exibir arquivo Open project: Bacon41/PantheonPrototype Class Usage Examples

Public Methods

Method Description
Complete ( ) : bool

A very simple implementation for this functionality. In more complex objectives this function might be more verbose.

HandleNotification ( Event eventinfo ) : void
Initialize ( Pantheon gameReference ) : void

Initializes the objective... note that the name of the target trigger must still be set independently.

TriggerObjective ( string targetTriggerName, int id ) : System

Constructs a functional Target Trigger that needs only be Initialized to be used.

Update ( GameTime gameTime ) : void
WrapUp ( Pantheon gameReference ) : void

Method Details

Complete() public method

A very simple implementation for this functionality. In more complex objectives this function might be more verbose.
public Complete ( ) : bool
return bool

HandleNotification() public method

public HandleNotification ( Event eventinfo ) : void
eventinfo Event
return void

Initialize() public method

Initializes the objective... note that the name of the target trigger must still be set independently.
public Initialize ( Pantheon gameReference ) : void
gameReference Pantheon A reference to the game object to access the event manager.
return void

TriggerObjective() public method

Constructs a functional Target Trigger that needs only be Initialized to be used.
public TriggerObjective ( string targetTriggerName, int id ) : System
targetTriggerName string The name of the trigger to which the objective should refer.
id int
return System

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

WrapUp() public method

public WrapUp ( Pantheon gameReference ) : void
gameReference Pantheon
return void