C# 클래스 Aura.Channel.Skills.Life.Campfire

상속: ISkillHandler, IPreparable, IReadyable, IUseable, ICompletable, ICancelable
파일 보기 프로젝트 열기: aura-project/aura

공개 메소드들

메소드 설명
Cancel ( Creature creature, Skill skill ) : void

Canceles skill (no special actions required)

Complete ( Creature creature, Skill skill, Packet packet ) : void

Completes skill, placing the campfire.

GetNearbyCampfire ( Creature creature, int range ) : Prop

Returns a campfire in range of creature, or null if there is none.

IsValidPosition ( Creature creature, Position pos ) : bool

Returns true if a campfire can be built at the given position.

IsValidRegion ( Region region ) : bool

Returns true if a campfire can be built at the given position.

Prepare ( Creature creature, Skill skill, Packet packet ) : bool

Prepares skill (effectively does nothing)

Ready ( Creature creature, Skill skill, Packet packet ) : bool

Readies skill, saving the item id to use for later.

Use ( Creature creature, Skill skill, Packet packet ) : void

Uses skill, checking if the campfire can be built at the given position.

비공개 메소드들

메소드 설명
GetDuration ( SkillRank rank, int regionId ) : int

Returns duration for rank in minutes.

GetPropId ( Item item ) : int

Gets the prop ID

메소드 상세

Cancel() 공개 메소드

Canceles skill (no special actions required)
public Cancel ( Creature creature, Skill skill ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
리턴 void

Complete() 공개 메소드

Completes skill, placing the campfire.
public Complete ( Creature creature, Skill skill, Packet packet ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
리턴 void

GetNearbyCampfire() 공개 정적인 메소드

Returns a campfire in range of creature, or null if there is none.
public static GetNearbyCampfire ( Creature creature, int range ) : Prop
creature Aura.Channel.World.Entities.Creature
range int
리턴 Aura.Channel.World.Entities.Prop

IsValidPosition() 공개 정적인 메소드

Returns true if a campfire can be built at the given position.
public static IsValidPosition ( Creature creature, Position pos ) : bool
creature Aura.Channel.World.Entities.Creature
pos Aura.Channel.World.Position
리턴 bool

IsValidRegion() 공개 정적인 메소드

Returns true if a campfire can be built at the given position.
public static IsValidRegion ( Region region ) : bool
region Aura.Channel.World.Region
리턴 bool

Prepare() 공개 메소드

Prepares skill (effectively does nothing)
public Prepare ( Creature creature, Skill skill, Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
리턴 bool

Ready() 공개 메소드

Readies skill, saving the item id to use for later.
public Ready ( Creature creature, Skill skill, Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
리턴 bool

Use() 공개 메소드

Uses skill, checking if the campfire can be built at the given position.
public Use ( Creature creature, Skill skill, Packet packet ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
리턴 void