C# 클래스 Gruppe22.Backend.TrapTile

A tile representing a trap in the game. Traps deal damage to actors which stand on them.
상속: Tile
파일 보기 프로젝트 열기: propra13-orga/gruppe22 1 사용 예제들

공개 메소드들

메소드 설명
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