C# Класс 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.
Наследование: Objective
Показать файл Открыть проект Примеры использования класса

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

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

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

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

A very simple implementation for this functionality. In more complex objectives this function might be more verbose.
public Complete ( ) : bool
Результат bool

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

public HandleNotification ( Event eventinfo ) : void
eventinfo Event
Результат void

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

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

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

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

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

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void

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

public WrapUp ( Pantheon gameReference ) : void
gameReference Pantheon
Результат void