C# 클래스 PantheonPrototype.Trigger

An entity designed to trigger and event when another entity collides with it.
상속: Entity
파일 보기 프로젝트 열기: Bacon41/PantheonPrototype

보호된 프로퍼티들

프로퍼티 타입 설명
active bool
reactivateTime int

공개 메소드들

메소드 설명
Load ( Microsoft.Xna.Framework.Content.ContentManager contentManager ) : void
Trigger ( Rectangle locationBox, Pantheon gameReference ) : System

The constructor for a Trigger entity. Note that the bounding box and drawing box are the same since the Trigger will not be drawn. The location is also specified by the location box. The action point is defaultly located in the center of the trigger.

Update ( GameTime gameTime, Pantheon gameReference ) : void
triggerHandler ( Event eventInfo ) : void

The handler for the Trigger which will be registered to an event with the same name as the trigger.

메소드 상세

Load() 공개 메소드

public Load ( Microsoft.Xna.Framework.Content.ContentManager contentManager ) : void
contentManager Microsoft.Xna.Framework.Content.ContentManager
리턴 void

Trigger() 공개 메소드

The constructor for a Trigger entity. Note that the bounding box and drawing box are the same since the Trigger will not be drawn. The location is also specified by the location box. The action point is defaultly located in the center of the trigger.
public Trigger ( Rectangle locationBox, Pantheon gameReference ) : System
locationBox Microsoft.Xna.Framework.Rectangle There is no location box...
gameReference Pantheon
리턴 System

Update() 공개 메소드

public Update ( GameTime gameTime, Pantheon gameReference ) : void
gameTime Microsoft.Xna.Framework.GameTime
gameReference Pantheon
리턴 void

triggerHandler() 공개 메소드

The handler for the Trigger which will be registered to an event with the same name as the trigger.
public triggerHandler ( Event eventInfo ) : void
eventInfo Event The general event information structure.
리턴 void

프로퍼티 상세

active 보호되어 있는 프로퍼티

Flag indicating if the trigger is active or not.
protected bool active
리턴 bool

reactivateTime 보호되어 있는 프로퍼티

protected int reactivateTime
리턴 int