C# Class Nez.Tiled.TiledTile

Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
flippedDiagonally bool
flippedHorizonally bool
flippedVertically bool
id int
x int
y int

Méthodes publiques

Méthode Description
TiledTile ( int id ) : Microsoft.Xna.Framework
ToString ( ) : string
getTileRectangle ( TiledMap tilemap ) : Rectangle

Rectangle that encompases this tile with origin on the top left

getWorldPosition ( TiledMap tilemap ) : Vector2

note that the origin is the top left so this position will represent that

setTileId ( int id ) : void

sets a new Tile id for this tile and invalidates the previous tilesetTileIndex

Method Details

TiledTile() public méthode

public TiledTile ( int id ) : Microsoft.Xna.Framework
id int
Résultat Microsoft.Xna.Framework

ToString() public méthode

public ToString ( ) : string
Résultat string

getTileRectangle() public méthode

Rectangle that encompases this tile with origin on the top left
public getTileRectangle ( TiledMap tilemap ) : Rectangle
tilemap TiledMap Tilemap.
Résultat Microsoft.Xna.Framework.Rectangle

getWorldPosition() public méthode

note that the origin is the top left so this position will represent that
public getWorldPosition ( TiledMap tilemap ) : Vector2
tilemap TiledMap Tilemap.
Résultat Microsoft.Xna.Framework.Vector2

setTileId() public méthode

sets a new Tile id for this tile and invalidates the previous tilesetTileIndex
public setTileId ( int id ) : void
id int Identifier.
Résultat void

Property Details

flippedDiagonally public_oe property

public bool flippedDiagonally
Résultat bool

flippedHorizonally public_oe property

public bool flippedHorizonally
Résultat bool

flippedVertically public_oe property

public bool flippedVertically
Résultat bool

id public_oe property

public int id
Résultat int

x public_oe property

public int x
Résultat int

y public_oe property

public int y
Résultat int