C# Class Gruppe22.Backend.TrapTile

A tile representing a trap in the game. Traps deal damage to actors which stand on them.
Inheritance: Tile
Afficher le fichier Open project: propra13-orga/gruppe22 Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

Save() public méthode

public Save ( XmlWriter xmlw ) : void
xmlw System.Xml.XmlWriter
Résultat void

TrapTile() public méthode

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
Résultat System

Trigger() public méthode

A method to determine what happens to the trap after an actor entered the TrapTile.
public Trigger ( ) : int
Résultat int

Update() public méthode

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
Résultat void