Class MP_FightState
It allows teams to play against each other, and obtain a winner based on a victory condition. Use only in multiplayer mode.
Namespace: AutoBattleFramework.Multiplayer.BattleBehaviour.States
Assembly: cs.temp.dll.dll
Syntax
public class MP_FightState : FightState
Methods
AllowFieldDrag(GameActor)
Do not allow any character drag. Item drag is allowed, so items can be equipped while fighting.
Declaration
public override bool AllowFieldDrag(GameActor actor)
Parameters
Type | Name | Description |
---|---|---|
GameActor | actor | Actor to be dragged. |
Returns
Type | Description |
---|---|
Boolean | True if the actor is an Item. |
CharacterAIUpdate(GameCharacter)
Moves the character and allows the attack on an enemy.
Declaration
public override void CharacterAIUpdate(GameCharacter character)
Parameters
Type | Name | Description |
---|---|---|
GameCharacter | character |
CheckWinCondition_MP()
Checks if the win condition has been fullfiled.
Declaration
public int CheckWinCondition_MP()
Returns
Type | Description |
---|---|
Int32 | Index of winning player. |
OnStageStart()
Saves the starting position of all characters.
Declaration
public override void OnStageStart()
OnTimerFinish()
When the battle ends, check for the win or lose condition.
Declaration
public override void OnTimerFinish()
Update()
Check for win and lose conditions. If one condition is fullfiled, change state.
Declaration
public override void Update()