Class PreparationState
Allows to instantiate enemies, as well as move and equip ally characters.
Inherited Members
Namespace: AutoBattleFramework.BattleBehaviour.States
Assembly: cs.temp.dll.dll
Syntax
public class PreparationState : BattleState
Fields
battlePositions
Positions where characters belonging to the enemy team, the second position of teams, will be spawned.
Declaration
public List<ScriptableBattlePosition> battlePositions
Field Value
Type | Description |
---|---|
List<ScriptableBattlePosition> |
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. |
Overrides
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. |
Overrides
OnStageStart()
The player recieves the gold from interestRate, then recieves gold from goldPerRound and shop experience from expPerRound.
Spawns the enemy team members in the positions set by battlePositions.
Declaration
public override void OnStageStart()
Overrides
OnTimerFinish()
When the timer reaches zero, go to the next state.
Declaration
public override void OnTimerFinish()
Overrides
Update()
Check for trait changes when trades between grid and bench.
Declaration
public override void Update()