C# Класс PantheonPrototype.Trigger

An entity designed to trigger and event when another entity collides with it.
Наследование: Entity
Показать файл Открыть проект

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

Свойство Тип Описание
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