Class MP_PreparationState
Allows to instantiate enemies, as well as move and equip ally characters. Use only in multiplayer mode.
Namespace: AutoBattleFramework.Multiplayer.BattleBehaviour.States
Assembly: cs.temp.dll.dll
Syntax
public class MP_PreparationState : BattleState
Fields
expPerRound
Experience that the player wins at the start of this state.
Declaration
public int expPerRound
Field Value
Type | Description |
---|---|
Int32 |
goldPerRound
Gold that the player wins at the start of this state.
Declaration
public int goldPerRound
Field Value
Type | Description |
---|---|
Int32 |
interestRate
Percentage of interest that the player will earn by accumulating money. For example, if he has 50 units of currency and the interest percentage is 0.1, he will earn 5 additional units.
Declaration
public float interestRate
Field Value
Type | Description |
---|---|
Single |
Methods
AllowFieldDrag(GameActor)
All characters and items can be moved in this state.
Declaration
public override bool AllowFieldDrag(GameActor actor)
Parameters
Type | Name | Description |
---|---|---|
GameActor | actor | Actor to be dragged. |
Returns
Type | Description |
---|---|
Boolean | True, all characters and items should be allowed to be moved. |
CharacterAIUpdate(GameCharacter)
The characters will stand still in this state.
Declaration
public override void CharacterAIUpdate(GameCharacter character)
Parameters
Type | Name | Description |
---|---|---|
GameCharacter | character | Character to be updated. |
OnStageStart()
The player recieves the gold from interestRate, then recieves gold from goldPerRound and shop experience from expPerRound.
Declaration
public override void OnStageStart()
OnTimerFinish()
When the timer reaches zero, go to the next state.
Declaration
public override void OnTimerFinish()
Update()
Check for trait changes when trades between grid and bench.
Declaration
public override void Update()