This commit is contained in:
2026-01-17 13:59:18 -06:00
parent c46afdac76
commit fbc4e070da
10 changed files with 145 additions and 52 deletions

View File

@@ -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()