C# Class MegaMan.Common.TileLayer

Show file Open project: Tesserex/C--MegaMan-Engine Class Usage Examples

Public Methods

Method Description
ChangeTile ( int x, int y, int tile ) : void
ChangeTiles ( Point offset, int newTiles ) : void
GetTiles ( Point offset, int width, int height ) : ].int[
Resize ( int width, int height ) : void
ResizeTopLeft ( int width, int height ) : void
Save ( string filepath ) : void
TileAt ( int x, int y ) : Tile
TileLayer ( int tiles, Tileset tileset, int base_x, int base_y ) : System

Private Methods

Method Description
CreateNewTiles ( int width, int height ) : ].int[

Method Details

ChangeTile() public method

public ChangeTile ( int x, int y, int tile ) : void
x int
y int
tile int
return void

ChangeTiles() public method

public ChangeTiles ( Point offset, int newTiles ) : void
offset Point
newTiles int
return void

GetTiles() public method

public GetTiles ( Point offset, int width, int height ) : ].int[
offset Point
width int
height int
return ].int[

Resize() public method

public Resize ( int width, int height ) : void
width int
height int
return void

ResizeTopLeft() public method

public ResizeTopLeft ( int width, int height ) : void
width int
height int
return void

Save() public method

public Save ( string filepath ) : void
filepath string
return void

TileAt() public method

public TileAt ( int x, int y ) : Tile
x int
y int
return Tile

TileLayer() public method

public TileLayer ( int tiles, Tileset tileset, int base_x, int base_y ) : System
tiles int
tileset Tileset
base_x int
base_y int
return System