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
파일 보기 프로젝트 열기: Bacon41/PantheonPrototype 1 사용 예제들

공개 메소드들

메소드 설명
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