baddle
This commit is contained in:
@@ -6,7 +6,7 @@ enum Status {
|
||||
}
|
||||
|
||||
enum FighterTeam {
|
||||
PLAYER,
|
||||
ALLY,
|
||||
ENEMY
|
||||
}
|
||||
|
||||
@@ -106,4 +106,12 @@ func isPlayerControlled() -> bool:
|
||||
return controller == FighterController.PLAYER
|
||||
|
||||
func getAIDecision() -> BattleDecision:
|
||||
if !canMakeDecision():
|
||||
return null
|
||||
return null
|
||||
|
||||
func canMakeDecision() -> bool:
|
||||
return status != Status.DEAD
|
||||
|
||||
func canPlayerMakeDecision() -> bool:
|
||||
return isPlayerControlled() && canMakeDecision()
|
||||
Reference in New Issue
Block a user