C# Class Gruppe22.Backend.TrapTile

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

Public Methods

Method 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 method

public Save ( XmlWriter xmlw ) : void
xmlw System.Xml.XmlWriter
return void

TrapTile() public method

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
return System

Trigger() public method

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

Update() public method

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
return void