C# Class Aura.Channel.World.Dungeons.Props.Door

A door, as found in dungeons.
Inheritance: Aura.Channel.World.Entities.Prop
Exibir arquivo Open project: aura-project/aura Class Usage Examples

Public Methods

Method Description
AddConfirmation ( ) : void

Adds confirmation to get into the room.

Close ( int x, int y ) : void

Closes door.

Door ( int propId, int regionId, int x, int y, int direction, DungeonBlockType doorType, string name, string state = "open" ) : Aura.Channel.Network.Sending

Creates new door prop.

Lock ( bool isSwitchDoor = false ) : void

Locks the door.

Open ( ) : void

Opens door.

Private Methods

Method Description
DefaultBehavior ( Creature creature, Prop prop ) : void

Door's behavior.

RemoveKey ( Creature character ) : bool

Returns true if character has the key to unlock this door, and removes it from his inventory.

WarpInside ( Creature creature, Prop prop ) : void

Door's behavior when it's not locked.

Method Details

AddConfirmation() public method

Adds confirmation to get into the room.
public AddConfirmation ( ) : void
return void

Close() public method

Closes door.
public Close ( int x, int y ) : void
x int
y int
return void

Door() public method

Creates new door prop.
public Door ( int propId, int regionId, int x, int y, int direction, DungeonBlockType doorType, string name, string state = "open" ) : Aura.Channel.Network.Sending
propId int
regionId int
x int
y int
direction int Direction the door faces in, in degree.
doorType DungeonBlockType
name string
state string
return Aura.Channel.Network.Sending

Lock() public method

Locks the door.
public Lock ( bool isSwitchDoor = false ) : void
isSwitchDoor bool
return void

Open() public method

Opens door.
public Open ( ) : void
return void