Ready to work on actual logic for battles.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
class_name BattleSingleton extends Node
|
||||
const BattleCutsceneAction = preload("res://cutscene/battle/BattleCutsceneAction.gd")
|
||||
|
||||
enum BattlePosition {
|
||||
LEFT_TOP_BACK,
|
||||
@@ -17,6 +16,17 @@ enum BattlePosition {
|
||||
RIGHT_BOTTOM_FRONT
|
||||
}
|
||||
|
||||
static func isPositionRight(battlePos:BattlePosition) -> bool:
|
||||
return battlePos in [
|
||||
BattlePosition.RIGHT_TOP_BACK,
|
||||
BattlePosition.RIGHT_TOP_FRONT,
|
||||
BattlePosition.RIGHT_MIDDLE_BACK,
|
||||
BattlePosition.RIGHT_MIDDLE_FRONT,
|
||||
BattlePosition.RIGHT_BOTTOM_BACK,
|
||||
BattlePosition.RIGHT_BOTTOM_FRONT
|
||||
]
|
||||
|
||||
|
||||
# Battle State
|
||||
var active:bool = false
|
||||
var fighterMap:Dictionary[BattlePosition, BattleFighter] = {}
|
||||
|
||||
Reference in New Issue
Block a user