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
Exibir arquivo Open project: propra13-orga/gruppe22 Class Usage Examples

Protected Properties

Property Type Description
_coords Backend.Coords
_overlay List

Public Methods

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

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

Dispose() public method

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

FloorTile() public method

Einfacher Konstruktor.
public FloorTile ( object parent ) : System
parent object Elternobjekt.
return System

FloorTile() public method

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

Remove() public method

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

Remove() public method

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

Save() public method

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

Update() public method

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

Property Details

_coords protected_oe property

protected Backend.Coords _coords
return Backend.Coords

_overlay protected_oe property

protected List _overlay
return List