summaryrefslogtreecommitdiffstats
path: root/Piece.gd
blob: 50baa437157d0c87fd505ca9a4b371bce80f2c90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 # impracticable

func at_least_one_tile() -> bool:
	print("Piece#at_least_one_tile() must be overriden in a subclass")
	return true