Dawn of Light - Class documentation 2900
This is the Dawn of Light project
DOL.GS.IArea Interface Reference

Interface for areas within game, extend this or AbstractArea if you need to define a new area shape that isn't already defined. Defined ones: More...

Inheritance diagram for DOL.GS.IArea:
DOL.GS.AbstractArea DOL.GS.Area.Circle DOL.GS.Area.Polygon DOL.GS.Area.Square DOL.GS.Area.BindArea DOL.GS.Area.SafeArea DOL.GS.GameRelicPad.PadArea DOL.GS.Keeps.KeepArea DOL.GS.Quests.QuestSearchArea DOL.GS.Relics.RelicPad.Surface

List of all members.

Public Member Functions

void UnRegisterPlayerEnter (DOLEventHandler callback)
void UnRegisterPlayerLeave (DOLEventHandler callback)
void RegisterPlayerEnter (DOLEventHandler callback)
void RegisterPlayerLeave (DOLEventHandler callback)
bool IsIntersectingZone (Zone zone)
 Checks wether is intersects with given zone. This is needed to build an area.zone mapping cache for performance.
bool IsContaining (IPoint3D spot)
 Checks wether given spot is within areas range or not.
bool IsContaining (IPoint3D spot, bool checkZ)
bool IsContaining (int x, int y, int z)
bool IsContaining (int x, int y, int z, bool checkZ)
void OnPlayerLeave (GamePlayer player)
 Called whenever a player leaves the given area.
void OnPlayerEnter (GamePlayer player)
 Called whenever a player enters the given area.

Properties

ushort ID [get, set]
 Returns the ID of this zone.

Detailed Description

Interface for areas within game, extend this or AbstractArea if you need to define a new area shape that isn't already defined. Defined ones:


Member Function Documentation

bool DOL.GS.IArea.IsContaining ( IPoint3D  spot)

Checks wether given spot is within areas range or not.

Parameters:
spot
Returns:

Implemented in DOL.GS.AbstractArea, DOL.GS.Area.Square, DOL.GS.Area.Circle, and DOL.GS.Area.Polygon.

bool DOL.GS.IArea.IsIntersectingZone ( Zone  zone)

Checks wether is intersects with given zone. This is needed to build an area.zone mapping cache for performance.

Parameters:
zone
Returns:

Implemented in DOL.GS.AbstractArea, DOL.GS.Area.Square, DOL.GS.Area.Circle, and DOL.GS.Area.Polygon.

void DOL.GS.IArea.OnPlayerEnter ( GamePlayer  player)

Called whenever a player enters the given area.

Parameters:
player

Implemented in DOL.GS.Keeps.KeepArea, DOL.GS.GameRelicPad.PadArea, DOL.GS.Quests.QuestSearchArea, DOL.GS.Relics.RelicPad.Surface, and DOL.GS.AbstractArea.

void DOL.GS.IArea.OnPlayerLeave ( GamePlayer  player)

Called whenever a player leaves the given area.

Parameters:
player

Implemented in DOL.GS.Relics.RelicPad.Surface, and DOL.GS.AbstractArea.


Property Documentation

ushort DOL.GS.IArea.ID [get, set]

Returns the ID of this zone.

Implemented in DOL.GS.AbstractArea.


The documentation for this interface was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events