C# Class fCraft.Drawing.PasteBrush

Brush that makes a tiled pattern out of copied blocks.
Inheritance: IBrush
Afficher le fichier Open project: fragmer/fCraft

Private Properties

Свойство Type Description
Mod int

Méthodes publiques

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

Méthode Description
Mod ( int x, int m ) : int

Method Details

Begin() public méthode

public Begin ( Player player, DrawOperation op ) : bool
player Player
op DrawOperation
Résultat bool

Clone() public méthode

public Clone ( ) : IBrush
Résultat IBrush

End() public méthode

public End ( ) : void
Résultat void

NextBlock() public méthode

public NextBlock ( DrawOperation op ) : Block
op DrawOperation
Résultat Block

PasteBrush() public méthode

Creates a new all-inclusive Paste brush.
public PasteBrush ( ) : System
Résultat System

PasteBrush() public méthode

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).
Résultat System