C# Класс Sphere.Core.Zone

A Sphere Zone object.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Clone() публичный Метод

Creates a perfect copy of this Zone.
public Clone ( ) : Zone
Результат Zone

Draw() публичный Метод

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.
Результат void

FromBinary() публичный статический Метод

Creates a zone from a filestream.
public static FromBinary ( BinaryReader reader ) : Zone
reader System.IO.BinaryReader The System.IO.BinrayReader to use.
Результат Zone

IsMouseWithin() публичный Метод

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.
Результат bool

Save() публичный Метод

Stores the zone into a filestream.
public Save ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter The System.IO.BinaryWriter to use.
Результат void

Zone() публичный Метод

Creates a new, blank zone.
public Zone ( ) : System.Drawing
Результат System.Drawing