![]() |
Dawn of Light - Class documentation 2900
This is the Dawn of Light project
|
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...
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. |
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:
bool DOL.GS.IArea.IsContaining | ( | IPoint3D | spot | ) |
Checks wether given spot is within areas range or not.
spot |
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.
zone |
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.
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.
player |
Implemented in DOL.GS.Relics.RelicPad.Surface, and DOL.GS.AbstractArea.
ushort DOL.GS.IArea.ID [get, set] |
Returns the ID of this zone.
Implemented in DOL.GS.AbstractArea.