C# Класс PantheonPrototype.Objective

Contains the individual logic for deciding if a condition has been met based on game events.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
nextObjectives List

Защищенные свойства (Protected)

Свойство Тип Описание
state condition

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

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

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

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

Determines if an objective is complete.
public Complete ( ) : bool
Результат bool

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

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

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

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

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

Constructor... yeah
public Objective ( int id ) : System
id int
Результат System

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

Used for time sensitive objectives.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Time since the last update cycle.
Результат void

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

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

Описание свойств

nextObjectives публичное свойство

A list of objectives which should activate when this one is finished.
public List nextObjectives
Результат List

state защищенное свойство

protected condition state
Результат condition