C# Class Gruppe22.Backend.ActorTile

A tile on the map used to represent an actor.
Inheritance: Tile
Afficher le fichier Open project: propra13-orga/gruppe22 Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

ActorTile() public méthode

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

ConsiderMoves() public méthode

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

DropItems() public méthode

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

Save() public méthode

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

Update() public méthode

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

WorkoutMoves() public méthode

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