baddle
This commit is contained in:
1 parent
c46afdac76
commit
fbc4e070da
10 files changed
+145
-52
No files matched your search
@@ -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