2021-11-08 13:40:11 +00:00
|
|
|
extends Node
|
|
|
|
|
2021-11-11 20:38:10 +00:00
|
|
|
# Path to Player class, for instantiating new Players in code
|
|
|
|
var Player = "res://script/game/Gameplay/Player.gd"
|
|
|
|
|
2021-11-11 21:38:50 +00:00
|
|
|
# Array of instances of the Player class; stores the Players
|
2021-11-08 13:40:11 +00:00
|
|
|
var players # = player1, player2, ...
|
2021-11-11 21:38:50 +00:00
|
|
|
# turn counter
|
|
|
|
var turn = 0
|
|
|
|
# Variable transporting hit state between players
|
|
|
|
var hit = false
|
|
|
|
# Variable tracking whether a game is multiplayer (so that the correct Player type can be spawned)
|
|
|
|
# TODO: Multiplayer
|
|
|
|
var is_multiplayer = false
|
2021-11-08 13:40:11 +00:00
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
func _ready():
|
2021-11-11 21:38:50 +00:00
|
|
|
game_start()
|
2021-11-08 13:40:11 +00:00
|
|
|
|
2021-11-11 21:38:50 +00:00
|
|
|
# Member functions:
|
|
|
|
# game_start: starts the game
|
|
|
|
func game_start():
|
2021-11-08 13:40:11 +00:00
|
|
|
pass
|
2021-11-11 21:38:50 +00:00
|
|
|
|
|
|
|
# victory_screen: display the victory screen
|
|
|
|
func victory_screen():
|
2021-11-08 13:40:11 +00:00
|
|
|
pass
|
2021-11-11 21:38:50 +00:00
|
|
|
|
|
|
|
# display_turn(): display which turn it is on the screen
|
|
|
|
func display_turn():
|
2021-11-08 13:40:11 +00:00
|
|
|
pass
|