com.GameInterface.FeatInterface

com.GameInterface.FeatInterface
Summary
com.GameInterface.FeatInterface
Variables
m_FeatListAssociavite array of all the spells the player has.
Functions
TrainFeatTrain a feat.
RefundFeatRefund a feat.
BuildFeatListRequest gamecode to rebuild the featlist.
Variables
SignalFeatTrainedSignal sent when a new feat was trained.
SignalFeatsUntrainedSignal sent if all feats were untrained.
SignalOpenTrainFeatGUISignal sent if gamecode wants us to show the feat gui.
SignalCloseTrainFeatGUISignal sent if gamecode wants us to close the feat gui.
SignalFeatListRebuilt

Variables

m_FeatList

public static var m_FeatList: Object

Associavite array of all the spells the player has.  This object is supposed to be const, but that is not supported in actionscript.  This list will be kept in sync by gamecode but you will have to call BuildFeatList when you show the feat gui.  You will get signals when the state of the list changes.

Functions

TrainFeat

public static function TrainFeat(featId: Number) : Boolean

Train a feat.  If it fail, message will pop on screen and false will be returned.  SignalFeatTrained will be called on success.

Parameters

featId[in] The feat to train.
param [out] True if all preliminary client checks was ok.  False if not.

RefundFeat

public static function RefundFeat(featId: Number) : Boolean

Refund a feat.

Parameters

featId[in] The feat to refund.

BuildFeatList

public static function BuildFeatList() : Void

Request gamecode to rebuild the featlist.  This should be called when you open the feat gui.  Should also be called if featpoints or level of the clientchar changes.

Variables

SignalFeatTrained

public static var SignalFeatTrained: Signal

Signal sent when a new feat was trained.  The m_FeatList has been update.

Parameters

featId:Number The feat that was trained.

SignalFeatsUntrained

public static var SignalFeatsUntrained: Signal

Signal sent if all feats were untrained.  The m_FeatList has been cleared.

SignalOpenTrainFeatGUI

public static var SignalOpenTrainFeatGUI: Signal

Signal sent if gamecode wants us to show the feat gui.

SignalCloseTrainFeatGUI

public static var SignalCloseTrainFeatGUI: Signal

Signal sent if gamecode wants us to close the feat gui.

SignalFeatListRebuilt

public static var SignalFeatListRebuilt: Signal
public static var m_FeatList: Object
Associavite array of all the spells the player has.
public static function TrainFeat(featId: Number) : Boolean
Train a feat.
public static function RefundFeat(featId: Number) : Boolean
Refund a feat.
public static function BuildFeatList() : Void
Request gamecode to rebuild the featlist.
public static var SignalFeatTrained: Signal
Signal sent when a new feat was trained.
public static var SignalFeatsUntrained: Signal
Signal sent if all feats were untrained.
public static var SignalOpenTrainFeatGUI: Signal
Signal sent if gamecode wants us to show the feat gui.
public static var SignalCloseTrainFeatGUI: Signal
Signal sent if gamecode wants us to close the feat gui.
public static var SignalFeatListRebuilt: Signal
Close