C# 클래스 PantheonPrototype.Objective

Contains the individual logic for deciding if a condition has been met based on game events.
파일 보기 프로젝트 열기: Bacon41/PantheonPrototype

공개 프로퍼티들

프로퍼티 타입 설명
nextObjectives List

보호된 프로퍼티들

프로퍼티 타입 설명
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