C# Класс Gruppe22.Backend.TrapTile

A tile representing a trap in the game. Traps deal damage to actors which stand on them.
Наследование: Tile
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Save ( XmlWriter xmlw ) : void
TrapTile ( object parent, int dmg ) : System

A Constructor setting the damage of the trap

Trigger ( ) : int

A method to determine what happens to the trap after an actor entered the TrapTile.

Update ( Microsoft gameTime ) : void

Update method for the trap. If the repeatTime passed since the last action the trap can again deal damage.

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

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

public Save ( XmlWriter xmlw ) : void
xmlw System.Xml.XmlWriter
Результат void

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

A Constructor setting the damage of the trap
public TrapTile ( object parent, int dmg ) : System
parent object The parent
dmg int The damage the trap will deal
Результат System

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

A method to determine what happens to the trap after an actor entered the TrapTile.
public Trigger ( ) : int
Результат int

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

Update method for the trap. If the repeatTime passed since the last action the trap can again deal damage.
public Update ( Microsoft gameTime ) : void
gameTime Microsoft
Результат void