C# Class Sphere.Core.Zone

A Sphere Zone object.
Afficher le fichier Open project: Radnen/spherestudio Class Usage Examples

Méthodes publiques

Méthode Description
Clone ( ) : Zone

Creates a perfect copy of this Zone.

Draw ( Graphics map, Point offset, int lighted, int zoom ) : void

Draws the zone to a System.drawing.Graphics.

FromBinary ( BinaryReader reader ) : Zone

Creates a zone from a filestream.

IsMouseWithin ( Point mouse ) : bool

Gets if whather or not the mouse is in a zone.

Save ( BinaryWriter writer ) : void

Stores the zone into a filestream.

Zone ( ) : System.Drawing

Creates a new, blank zone.

Method Details

Clone() public méthode

Creates a perfect copy of this Zone.
public Clone ( ) : Zone
Résultat Zone

Draw() public méthode

Draws the zone to a System.drawing.Graphics.
public Draw ( Graphics map, Point offset, int lighted, int zoom ) : void
map System.Drawing.Graphics The System.Drawing.Graphics to use.
offset System.Drawing.Point The x/y offset of the zone.
lighted int The state the zone is in.
zoom int The zoom factor.
Résultat void

FromBinary() public static méthode

Creates a zone from a filestream.
public static FromBinary ( BinaryReader reader ) : Zone
reader System.IO.BinaryReader The System.IO.BinrayReader to use.
Résultat Zone

IsMouseWithin() public méthode

Gets if whather or not the mouse is in a zone.
public IsMouseWithin ( Point mouse ) : bool
mouse System.Drawing.Point The System.Drawing.Point of the mouses location.
Résultat bool

Save() public méthode

Stores the zone into a filestream.
public Save ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter The System.IO.BinaryWriter to use.
Résultat void

Zone() public méthode

Creates a new, blank zone.
public Zone ( ) : System.Drawing
Résultat System.Drawing