C# Class Nez.Tiled.TiledTile

ファイルを表示 Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
flippedDiagonally bool
flippedHorizonally bool
flippedVertically bool
id int
x int
y int

Public Methods

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

public TiledTile ( int id ) : Microsoft.Xna.Framework
id int
return Microsoft.Xna.Framework

ToString() public method

public ToString ( ) : string
return string

getTileRectangle() public method

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

getWorldPosition() public method

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

setTileId() public method

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

Property Details

flippedDiagonally public_oe property

public bool flippedDiagonally
return bool

flippedHorizonally public_oe property

public bool flippedHorizonally
return bool

flippedVertically public_oe property

public bool flippedVertically
return bool

id public_oe property

public int id
return int

x public_oe property

public int x
return int

y public_oe property

public int y
return int