C# Class Aura.Channel.World.Entities.Creatures.CreatureConditions

Holds all conditions of a creature.
"Extra" values are information about conditions that are stored in MabiDictionaries, they appear after the actual conditions in the ConditionUpdate packet. An example of such a condition is ConditionsC.Hurry, which is used to modify your movement speed. To set those values, prepare a MabiDictionary before calling Activate and pass it as the optional "extra" value. They are removed automatically on deactivating.
显示文件 Open project: aura-project/aura Class Usage Examples

Public Methods

Method Description
Activate ( ConditionsA condition, MabiDictionary extra = null, int duration = -1 ) : void
Activate ( ConditionsB condition, MabiDictionary extra = null, int duration = -1 ) : void
Activate ( ConditionsC condition, MabiDictionary extra = null, int duration = -1 ) : void
Activate ( ConditionsD condition, MabiDictionary extra = null, int duration = -1 ) : void
Activate ( ConditionsE condition, MabiDictionary extra = null, int duration = -1 ) : void
Activate ( ConditionsF condition, MabiDictionary extra = null, int duration = -1 ) : void
Activate ( ConditionsG condition, MabiDictionary extra = null, int duration = -1 ) : void
Clear ( ) : void

Resets all conditions and sends update.

CreatureConditions ( Creature creature ) : Aura.Channel.Network.Sending
Deactivate ( ConditionsA condition ) : void
Deactivate ( ConditionsB condition ) : void
Deactivate ( ConditionsC condition ) : void
Deactivate ( ConditionsD condition ) : void
Deactivate ( ConditionsE condition ) : void
Deactivate ( ConditionsF condition ) : void
Deactivate ( ConditionsG condition ) : void
Deactivate ( int condition ) : void
GetExtraField ( int id, string name ) : object

Returns extra data for id, or null.

GetExtraList ( ) : MabiDictionary>>.ICollection

Returns new list of all extra values.

GetExtraVal ( int id ) : short

Returns extra val for id, or 0.

Has ( ConditionsA condition ) : bool
Has ( ConditionsB condition ) : bool
Has ( ConditionsC condition ) : bool
Has ( ConditionsD condition ) : bool
Has ( ConditionsE condition ) : bool
Has ( ConditionsF condition ) : bool
Has ( ConditionsG condition ) : bool
Has ( int condition ) : bool
OnSecondsTimeTick ( ErinnTime time ) : void

Removes overdue conditions.

ToString ( ) : string

Private Methods

Method Description
RemoveExtra ( double condition, int offset ) : void
SetDuration ( double condition, int offset, int milliseconds ) : void
SetExtra ( double condition, int offset, MabiDictionary extra ) : void

Method Details

Activate() public method

public Activate ( ConditionsA condition, MabiDictionary extra = null, int duration = -1 ) : void
condition ConditionsA
extra MabiDictionary
duration int
return void

Activate() public method

public Activate ( ConditionsB condition, MabiDictionary extra = null, int duration = -1 ) : void
condition ConditionsB
extra MabiDictionary
duration int
return void

Activate() public method

public Activate ( ConditionsC condition, MabiDictionary extra = null, int duration = -1 ) : void
condition ConditionsC
extra MabiDictionary
duration int
return void

Activate() public method

public Activate ( ConditionsD condition, MabiDictionary extra = null, int duration = -1 ) : void
condition ConditionsD
extra MabiDictionary
duration int
return void

Activate() public method

public Activate ( ConditionsE condition, MabiDictionary extra = null, int duration = -1 ) : void
condition ConditionsE
extra MabiDictionary
duration int
return void

Activate() public method

public Activate ( ConditionsF condition, MabiDictionary extra = null, int duration = -1 ) : void
condition ConditionsF
extra MabiDictionary
duration int
return void

Activate() public method

public Activate ( ConditionsG condition, MabiDictionary extra = null, int duration = -1 ) : void
condition ConditionsG
extra MabiDictionary
duration int
return void

Clear() public method

Resets all conditions and sends update.
public Clear ( ) : void
return void

CreatureConditions() public method

public CreatureConditions ( Creature creature ) : Aura.Channel.Network.Sending
creature Creature
return Aura.Channel.Network.Sending

Deactivate() public method

public Deactivate ( ConditionsA condition ) : void
condition ConditionsA
return void

Deactivate() public method

public Deactivate ( ConditionsB condition ) : void
condition ConditionsB
return void

Deactivate() public method

public Deactivate ( ConditionsC condition ) : void
condition ConditionsC
return void

Deactivate() public method

public Deactivate ( ConditionsD condition ) : void
condition ConditionsD
return void

Deactivate() public method

public Deactivate ( ConditionsE condition ) : void
condition ConditionsE
return void

Deactivate() public method

public Deactivate ( ConditionsF condition ) : void
condition ConditionsF
return void

Deactivate() public method

public Deactivate ( ConditionsG condition ) : void
condition ConditionsG
return void

Deactivate() public method

public Deactivate ( int condition ) : void
condition int
return void

GetExtraField() public method

Returns extra data for id, or null.
public GetExtraField ( int id, string name ) : object
id int
name string
return object

GetExtraList() public method

Returns new list of all extra values.
public GetExtraList ( ) : MabiDictionary>>.ICollection
return MabiDictionary>>.ICollection

GetExtraVal() public method

Returns extra val for id, or 0.
public GetExtraVal ( int id ) : short
id int
return short

Has() public method

public Has ( ConditionsA condition ) : bool
condition ConditionsA
return bool

Has() public method

public Has ( ConditionsB condition ) : bool
condition ConditionsB
return bool

Has() public method

public Has ( ConditionsC condition ) : bool
condition ConditionsC
return bool

Has() public method

public Has ( ConditionsD condition ) : bool
condition ConditionsD
return bool

Has() public method

public Has ( ConditionsE condition ) : bool
condition ConditionsE
return bool

Has() public method

public Has ( ConditionsF condition ) : bool
condition ConditionsF
return bool

Has() public method

public Has ( ConditionsG condition ) : bool
condition ConditionsG
return bool

Has() public method

public Has ( int condition ) : bool
condition int
return bool

OnSecondsTimeTick() public method

Removes overdue conditions.
public OnSecondsTimeTick ( ErinnTime time ) : void
time Aura.Mabi.ErinnTime
return void

ToString() public method

public ToString ( ) : string
return string