C# Class MegaMan.LevelEditor.TileBrush

Inheritance: ITileBrush
Afficher le fichier Open project: Tesserex/C--MegaMan-Engine Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public AddTile ( Tile tile, int x, int y ) : void
tile MegaMan.Common.Tile
x int
y int
Résultat void

Cells() public méthode

public Cells ( ) : IEnumerable
Résultat IEnumerable

DrawOn() public méthode

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
Résultat ITileBrush

DrawOn() public méthode

public DrawOn ( Graphics g, int x, int y ) : void
g System.Drawing.Graphics
x int
y int
Résultat void

Reset() public méthode

public Reset ( int width, int height ) : void
width int
height int
Résultat void

TileBrush() public méthode

public TileBrush ( int width, int height ) : System
width int
height int
Résultat System