C# Class MegaMan.LevelEditor.TileBrush

Inheritance: ITileBrush
Exibir arquivo Open project: Tesserex/C--MegaMan-Engine Class Usage Examples

Public Methods

Method Description
AddTile ( Tile tile, int x, int y ) : void
Cells ( ) : IEnumerable
DrawOn ( ScreenDocument screen, int tile_x, int tile_y ) : ITileBrush

Draws the brush onto the given screen at the given tile location. Returns an "undo brush" - a brush of all tiles that were overwritten. Returns null if no tiles were changed.

DrawOn ( Graphics g, int x, int y ) : void
Reset ( int width, int height ) : void
TileBrush ( int width, int height ) : System

Method Details

AddTile() public method

public AddTile ( Tile tile, int x, int y ) : void
tile MegaMan.Common.Tile
x int
y int
return void

Cells() public method

public Cells ( ) : IEnumerable
return IEnumerable

DrawOn() public method

Draws the brush onto the given screen at the given tile location. Returns an "undo brush" - a brush of all tiles that were overwritten. Returns null if no tiles were changed.
public DrawOn ( ScreenDocument screen, int tile_x, int tile_y ) : ITileBrush
screen ScreenDocument
tile_x int
tile_y int
return ITileBrush

DrawOn() public method

public DrawOn ( Graphics g, int x, int y ) : void
g System.Drawing.Graphics
x int
y int
return void

Reset() public method

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

TileBrush() public method

public TileBrush ( int width, int height ) : System
width int
height int
return System