C# Class TMXGlueLib.TilesetExtensionMethods

Datei anzeigen Open project: vchelaru/FlatRedBall Class Usage Examples

Public Methods

Method Description
CoordinateToIndex ( this tileset, int xCoordinate, int yCoordinate, int &xIndex, int &yIndex ) : void
CoordinateToLocalId ( this tileset, int xCoordinate, int yCoordinate ) : int
GetNumberOfTilesTall ( int imageHeight, int margin, int tileHeight, int spacing ) : int
GetNumberOfTilesTall ( this tileset ) : int
GetNumberOfTilesWide ( int imageWidth, int margin, int tileWidth, int spacing ) : int
GetNumberOfTilesWide ( this tileset ) : int
GetTileCount ( this tileset ) : int
IndexToCoordinate ( this tileset, long xIndex, long yIndex, int &xCoordinate, int &yCoordinate ) : void
IndexToLocalId ( this tileset, int xIndex, int yIndex ) : int

Method Details

CoordinateToIndex() public static method

public static CoordinateToIndex ( this tileset, int xCoordinate, int yCoordinate, int &xIndex, int &yIndex ) : void
tileset this
xCoordinate int
yCoordinate int
xIndex int
yIndex int
return void

CoordinateToLocalId() public static method

public static CoordinateToLocalId ( this tileset, int xCoordinate, int yCoordinate ) : int
tileset this
xCoordinate int
yCoordinate int
return int

GetNumberOfTilesTall() public static method

public static GetNumberOfTilesTall ( int imageHeight, int margin, int tileHeight, int spacing ) : int
imageHeight int
margin int
tileHeight int
spacing int
return int

GetNumberOfTilesTall() public static method

public static GetNumberOfTilesTall ( this tileset ) : int
tileset this
return int

GetNumberOfTilesWide() public static method

public static GetNumberOfTilesWide ( int imageWidth, int margin, int tileWidth, int spacing ) : int
imageWidth int
margin int
tileWidth int
spacing int
return int

GetNumberOfTilesWide() public static method

public static GetNumberOfTilesWide ( this tileset ) : int
tileset this
return int

GetTileCount() public static method

public static GetTileCount ( this tileset ) : int
tileset this
return int

IndexToCoordinate() public static method

public static IndexToCoordinate ( this tileset, long xIndex, long yIndex, int &xCoordinate, int &yCoordinate ) : void
tileset this
xIndex long
yIndex long
xCoordinate int
yCoordinate int
return void

IndexToLocalId() public static method

public static IndexToLocalId ( this tileset, int xIndex, int yIndex ) : int
tileset this
xIndex int
yIndex int
return int