summaryrefslogtreecommitdiffstats
path: root/Piece.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Piece.gd')
-rw-r--r--Piece.gd20
1 files changed, 20 insertions, 0 deletions
diff --git a/Piece.gd b/Piece.gd
new file mode 100644
index 0000000..7564d0f
--- /dev/null
+++ b/Piece.gd
@@ -0,0 +1,20 @@
+#warning-ignore-all:unused_argument
+extends Node2D
+
+class_name Piece, "res://godot/Piece.png"
+
+func get_mp() -> int:
+ print("Piece#get_mp() must be overriden in a subclass")
+ return 0
+
+func road_march_bonus() -> int:
+ print("Piece#road_march_bonus() must be overriden in a subclass")
+ return 0
+
+func move_cost(src : Tile, dst : Tile, a : int) -> int:
+ print("Piece#move_cost() must be overriden in a subclass")
+ return 1
+
+func at_least_one_tile() -> bool:
+ print("Piece#at_least_one_tile() must be overriden in a subclass")
+ return true