C# Class OgmoEditor.Definitions.Tileset

Datei anzeigen Open project: talesofgames/Ogmo-Editor Class Usage Examples

Public Properties

Property Type Description
FilePath string
Name string
TileSep int
TileSize Size

Public Methods

Method Description
Clone ( ) : Tileset
ContainsTile ( Point tile ) : bool
ContainsTile ( int id ) : bool
GenerateBitmap ( ) : void
GetBitmap ( ) : Bitmap
GetBitmapFromID ( int id ) : Bitmap
GetCellFromID ( int id ) : Point
GetIDFromCell ( Point cell ) : int
GetIDFromCell ( int cellX, int cellY ) : int
GetIDFromSelectionRectPoint ( Rectangle selection, Point startCell, Point currentCell ) : int
GetRectFromID ( int id ) : Rectangle
GetTileHit ( Point at ) : int
GetVisualRectFromSelection ( Rectangle selection ) : Rectangle
SetFilePath ( string to ) : void
Tileset ( ) : System.Drawing
ToString ( ) : string
TransformID ( Tileset from, int id ) : int
TransformMap ( Tileset from, ].int[ ids ) : ].int[

Method Details

Clone() public method

public Clone ( ) : Tileset
return Tileset

ContainsTile() public method

public ContainsTile ( Point tile ) : bool
tile Point
return bool

ContainsTile() public method

public ContainsTile ( int id ) : bool
id int
return bool

GenerateBitmap() public method

public GenerateBitmap ( ) : void
return void

GetBitmap() public method

public GetBitmap ( ) : Bitmap
return Bitmap

GetBitmapFromID() public method

public GetBitmapFromID ( int id ) : Bitmap
id int
return Bitmap

GetCellFromID() public method

public GetCellFromID ( int id ) : Point
id int
return Point

GetIDFromCell() public method

public GetIDFromCell ( Point cell ) : int
cell Point
return int

GetIDFromCell() public method

public GetIDFromCell ( int cellX, int cellY ) : int
cellX int
cellY int
return int

GetIDFromSelectionRectPoint() public method

public GetIDFromSelectionRectPoint ( Rectangle selection, Point startCell, Point currentCell ) : int
selection Rectangle
startCell Point
currentCell Point
return int

GetRectFromID() public method

public GetRectFromID ( int id ) : Rectangle
id int
return Rectangle

GetTileHit() public method

public GetTileHit ( Point at ) : int
at Point
return int

GetVisualRectFromSelection() public method

public GetVisualRectFromSelection ( Rectangle selection ) : Rectangle
selection Rectangle
return Rectangle

SetFilePath() public method

public SetFilePath ( string to ) : void
to string
return void

Tileset() public method

public Tileset ( ) : System.Drawing
return System.Drawing

ToString() public method

public ToString ( ) : string
return string

TransformID() public method

public TransformID ( Tileset from, int id ) : int
from Tileset
id int
return int

TransformMap() public method

public TransformMap ( Tileset from, ].int[ ids ) : ].int[
from Tileset
ids ].int[
return ].int[

Property Details

FilePath public_oe property

public string FilePath
return string

Name public_oe property

public string Name
return string

TileSep public_oe property

public int TileSep
return int

TileSize public_oe property

public Size TileSize
return Size