Class: TreasureCollector

TreasureCollector()

new TreasureCollector()

Source:

Methods

CanCollect(target) → {boolean}

Parameters:
Name Type Description
target number Entity ID of the target.
Source:
Returns:
- Whether we can collect from the target.
Type
boolean

CollectTreasure()

Source:

GetRange() → {Object}

Source:
Returns:
- Min/Max range at which this entity can claim a treasure.
Type
Object

IsTargetInRange(target) → {boolean}

Parameters:
Name Type Description
target number The entity ID of the target to check.
Source:
Returns:
- Whether this entity is in range of its target.
Type
boolean

StartCollecting(target, callerIID) → {boolean}

Parameters:
Name Type Description
target number The target to collect.
callerIID number The IID to notify on specific events.
Source:
Returns:
- Whether we started collecting.
Type
boolean

StopCollecting(reason)

Parameters:
Name Type Description
reason string The reason why we stopped collecting, used to notify the caller.
Source: