C# 클래스 Nez.Tiled.TiledTile

파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
flippedDiagonally bool
flippedHorizonally bool
flippedVertically bool
id int
x int
y int

공개 메소드들

메소드 설명
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

메소드 상세

TiledTile() 공개 메소드

public TiledTile ( int id ) : Microsoft.Xna.Framework
id int
리턴 Microsoft.Xna.Framework

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

getTileRectangle() 공개 메소드

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

getWorldPosition() 공개 메소드

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

setTileId() 공개 메소드

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

프로퍼티 상세

flippedDiagonally 공개적으로 프로퍼티

public bool flippedDiagonally
리턴 bool

flippedHorizonally 공개적으로 프로퍼티

public bool flippedHorizonally
리턴 bool

flippedVertically 공개적으로 프로퍼티

public bool flippedVertically
리턴 bool

id 공개적으로 프로퍼티

public int id
리턴 int

x 공개적으로 프로퍼티

public int x
리턴 int

y 공개적으로 프로퍼티

public int y
리턴 int