![]() |
Dawn of Light - Class documentation 2900
This is the Dawn of Light project
|
GameDoor is class for regular door. More...
Classes | |
class | CloseDoorAction |
The action that closes the door after specified duration. More... | |
Public Member Functions | |
GameDoor () | |
Creates a new GameDoor object. | |
override void | LoadFromDatabase (DataObject obj) |
Loads this door from a door table slot. | |
override void | SaveIntoDatabase () |
save this door to a door table slot | |
void | Open () |
Call this function to open the door. | |
void | Close () |
Call this function to close the door. | |
void | NPCManipulateDoorRequest (GameNPC npc, bool open) |
Allow a NPC to manipulate the door. | |
override void | Die (GameObject killer) |
No regeneration over time of the door. | |
virtual void | BroadcastUpdate () |
void | RegenDoorHealth () |
void | StartHealthRegen (object param) |
override void | TakeDamage (GameObject source, eDamageType damageType, int damageAmount, int criticalAmount) |
This method is called whenever this living should take damage from some source. | |
Protected Attributes | |
volatile uint | m_lastUpdateTickCount = uint.MinValue |
const int | CLOSE_DOOR_TIME = 8000 |
The time interval after which door will be closed, in milliseconds On live this is usually 5 seconds. | |
GameTimer | m_closeDoorAction |
The timed action that will close the door. | |
eDoorState | m_state |
This hold the state of door. | |
Properties | |
int | Locked [get, set] |
door open = 0 / lock = 1 | |
int | DoorID [get, set] |
door index which is unique | |
ushort | ZoneID [get] |
Get the ZoneID of this door. | |
int | Type [get, set] |
Door Type. | |
uint | Flag [get, set] |
This is used to identify what sound a door makes when open / close. | |
eDoorState | State [get, set] |
The state of door (open or close) | |
byte | Status [get] |
override int | Health [get, set] |
Gets/sets the object health. | |
override int | MaxHealth [get] |
Get the solidity of the door. |
GameDoor is class for regular door.
DOL.GS.GameDoor.GameDoor | ( | ) |
Creates a new GameDoor object.
void DOL.GS.GameDoor.Close | ( | ) |
Call this function to close the door.
Implements DOL.GS.IDoor.
override void DOL.GS.GameDoor.Die | ( | GameObject | killer | ) | [virtual] |
override void DOL.GS.GameDoor.LoadFromDatabase | ( | DataObject | obj | ) |
void DOL.GS.GameDoor.NPCManipulateDoorRequest | ( | GameNPC | npc, |
bool | open | ||
) |
void DOL.GS.GameDoor.Open | ( | ) |
Call this function to open the door.
Implements DOL.GS.IDoor.
override void DOL.GS.GameDoor.SaveIntoDatabase | ( | ) | [virtual] |
save this door to a door table slot
Reimplemented from DOL.GS.GameObject.
override void DOL.GS.GameDoor.TakeDamage | ( | GameObject | source, |
eDamageType | damageType, | ||
int | damageAmount, | ||
int | criticalAmount | ||
) | [virtual] |
This method is called whenever this living should take damage from some source.
source | the damage source |
damageType | the damage type |
damageAmount | the amount of damage |
criticalAmount | the amount of critical damage |
Reimplemented from DOL.GS.GameLiving.
const int DOL.GS.GameDoor.CLOSE_DOOR_TIME = 8000 [protected] |
The time interval after which door will be closed, in milliseconds On live this is usually 5 seconds.
GameTimer DOL.GS.GameDoor.m_closeDoorAction [protected] |
The timed action that will close the door.
eDoorState DOL.GS.GameDoor.m_state [protected] |
This hold the state of door.
int DOL.GS.GameDoor.DoorID [get, set] |
door index which is unique
Implements DOL.GS.IDoor.
uint DOL.GS.GameDoor.Flag [get, set] |
This is used to identify what sound a door makes when open / close.
Implements DOL.GS.IDoor.
override int DOL.GS.GameDoor.Health [get, set] |
Gets/sets the object health.
Reimplemented from DOL.GS.GameLiving.
int DOL.GS.GameDoor.Locked [get, set] |
door open = 0 / lock = 1
override int DOL.GS.GameDoor.MaxHealth [get] |
Get the solidity of the door.
Reimplemented from DOL.GS.GameLiving.
eDoorState DOL.GS.GameDoor.State [get, set] |
The state of door (open or close)
Implements DOL.GS.IDoor.
int DOL.GS.GameDoor.Type [get, set] |
Door Type.
ushort DOL.GS.GameDoor.ZoneID [get] |
Get the ZoneID of this door.
Implements DOL.GS.IDoor.