C# Class Gruppe22.Backend.FloorTile

A tile representing the floor of the world. Everything is build on the floor and actors also move on the floor.
Inheritance: Tile, IDisposable
Afficher le fichier Open project: propra13-orga/gruppe22 Class Usage Examples

Protected Properties

Свойство Type Description
_coords Backend.Coords
_overlay List

Méthodes publiques

Méthode Description
Add ( Tile tile, bool update = false ) : void

Fügt den angegebenen Tile zu dem overlay hinzu.

Dispose ( ) : void

Aufräumen nachdem die Objekte verworfen werden können.

FloorTile ( object parent ) : System

Einfacher Konstruktor.

FloorTile ( object parent, Backend coords = null, bool canEnter = true ) : System

Dieser Konstruktor fürgt dem overlay ein WallTile hinzu, falls die Stelle als unpassierbar markiert ist

Remove ( Tile tile ) : void

Löscht den angegebenen Tile aus dem overlay.

Remove ( TileType type ) : void

Lösche alle Tiles des angegebenen Types aus dem overlay

Save ( XmlWriter xmlw ) : void

Method to save the FloorTile and every tile in it's overlay in a XML-file

Update ( GameTime gameTime ) : void

Update der interaktiven Tiles.

Method Details

Add() public méthode

Fügt den angegebenen Tile zu dem overlay hinzu.
public Add ( Tile tile, bool update = false ) : void
tile Tile Das Tile das hinzugefügt wird.
update bool
Résultat void

Dispose() public méthode

Aufräumen nachdem die Objekte verworfen werden können.
public Dispose ( ) : void
Résultat void

FloorTile() public méthode

Einfacher Konstruktor.
public FloorTile ( object parent ) : System
parent object Elternobjekt.
Résultat System

FloorTile() public méthode

Dieser Konstruktor fürgt dem overlay ein WallTile hinzu, falls die Stelle als unpassierbar markiert ist
public FloorTile ( object parent, Backend coords = null, bool canEnter = true ) : System
parent object Elternobjekt.
coords Backend Koordinaten.
canEnter bool Passierbarkeit.
Résultat System

Remove() public méthode

Löscht den angegebenen Tile aus dem overlay.
public Remove ( Tile tile ) : void
tile Tile
Résultat void

Remove() public méthode

Lösche alle Tiles des angegebenen Types aus dem overlay
public Remove ( TileType type ) : void
type TileType Der Typ der Tiles die gelöscht werden sollen.
Résultat void

Save() public méthode

Method to save the FloorTile and every tile in it's overlay in a XML-file
public Save ( XmlWriter xmlw ) : void
xmlw System.Xml.XmlWriter XMLwriter
Résultat void

Update() public méthode

Update der interaktiven Tiles.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Hilfsobjekt.
Résultat void

Property Details

_coords protected_oe property

protected Backend.Coords _coords
Résultat Backend.Coords

_overlay protected_oe property

protected List _overlay
Résultat List