C# Class Gruppe22.Backend.ActorTile

A tile on the map used to represent an actor.
Inheritance: Tile
ファイルを表示 Open project: propra13-orga/gruppe22 Class Usage Examples

Public Methods

Method Description
ActorTile ( object parent, Actor actor ) : System

The constructor for the ActorTile Calls the constructor of Tile.

ActorTile ( object parent, Random r = null ) : System

The constructor for the ActorTile. Calls the parent constructor.

ConsiderMoves ( ) : System.Threading.Tasks.Task

Die in erwägung gezogene Bewegung.

DropItems ( ) : void

Method to drop the full inventory of the connected player to the tile he stands on.

Save ( XmlWriter xmlw ) : void

Method to save the actortile. Calls the save-method of the connected actor.

Update ( Microsoft gameTime ) : void

the update-routine for the ActorTile.

WorkoutMoves ( ) : System.Threading.Tasks.Task

Method to determine the next moves of a computer controlled actor.

Method Details

ActorTile() public method

The constructor for the ActorTile Calls the constructor of Tile.
public ActorTile ( object parent, Actor actor ) : System
parent object Just the parent object
actor Actor The to the tile connected actor.
return System

ActorTile() public method

The constructor for the ActorTile. Calls the parent constructor.
public ActorTile ( object parent, Random r = null ) : System
parent object Parent
r System.Random A random needed for some methods
return System

ConsiderMoves() public method

Die in erwägung gezogene Bewegung.
public ConsiderMoves ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

DropItems() public method

Method to drop the full inventory of the connected player to the tile he stands on.
public DropItems ( ) : void
return void

Save() public method

Method to save the actortile. Calls the save-method of the connected actor.
public Save ( XmlWriter xmlw ) : void
xmlw System.Xml.XmlWriter The used XMLwriter
return void

Update() public method

the update-routine for the ActorTile.
public Update ( Microsoft gameTime ) : void
gameTime Microsoft The Gametime
return void

WorkoutMoves() public method

Method to determine the next moves of a computer controlled actor.
public WorkoutMoves ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task