]> Untitled Git - frog-ninja.git/blobdiff - player/moves/Move.gd
Separated the Visual from the Model
[frog-ninja.git] / player / moves / Move.gd
index 42cf711c27a5cc71043d43addcb78bef286c3149..7aee9eec87ab6d16db2e6dd168ff2501e2a8286d 100644 (file)
@@ -5,6 +5,8 @@ class_name Move
 # flags and variables here
 var player: Player
 var camera: Camera3D
+@export var state_name: String
+
 
 # enums are prioritized by order of list
 static var moves_priority: Dictionary = {
@@ -12,8 +14,10 @@ static var moves_priority: Dictionary = {
        "walk": 1,
        "slash": 2,
        "shoot": 3,
-       "fall": 50,
-       "dash": 100
+       "dash": 50,
+       "fall": 100,
+       "fallToLanding": 101,
+       "fallToRoll": 102,
 }
 
 static func moves_priority_sort(a: String, b: String):
@@ -38,3 +42,11 @@ func on_enter_state():
 
 func on_exit_state():
        pass
+
+
+func _on_animation_started(_animation_name: String):
+       pass
+
+
+func _on_animation_finished(_animation_name: String):
+       pass