C# Class fCraft.Drawing.PasteBrush

Brush that makes a tiled pattern out of copied blocks.
Inheritance: IBrush
Show file Open project: fragmer/fCraft

Private Properties

Property Type Description
Mod int

Public Methods

Method Description
Begin ( Player player, DrawOperation op ) : bool
Clone ( ) : IBrush
End ( ) : void
NextBlock ( DrawOperation op ) : Block
PasteBrush ( ) : System

Creates a new all-inclusive Paste brush.

PasteBrush ( [ blocks, bool not ) : System

Creates a new filtering Paste or PasteNot brush.

Private Methods

Method Description
Mod ( int x, int m ) : int

Method Details

Begin() public method

public Begin ( Player player, DrawOperation op ) : bool
player Player
op DrawOperation
return bool

Clone() public method

public Clone ( ) : IBrush
return IBrush

End() public method

public End ( ) : void
return void

NextBlock() public method

public NextBlock ( DrawOperation op ) : Block
op DrawOperation
return Block

PasteBrush() public method

Creates a new all-inclusive Paste brush.
public PasteBrush ( ) : System
return System

PasteBrush() public method

Creates a new filtering Paste or PasteNot brush.
blocks is null blocks is 0-length
public PasteBrush ( [ blocks, bool not ) : System
blocks [ Array of block types for filtering. May not be null or empty.
not bool Whether filtering should be inclusive (Paste) or exclusive (PasteNot).
return System