added some more signals for attack hit, enemy and player controllers turn done, commander enemy death, better enemy movement and turn changing, implemented an rng, added functions to grid and gridmarkers to allow for easier searching of markers, more logic for if a tower commander has actions

This commit is contained in:
2026-06-01 02:28:45 -04:00
parent facb2e227e
commit dd14a8da40
13 changed files with 138 additions and 60 deletions
+6
View File
@@ -17,6 +17,9 @@ public partial class Main : Node
_playerController = GetNode<PlayerController>("PlayerController");
_enemyController = GetNode<EnemyController>("EnemyController");
_playerController._enemyController = _enemyController;
_enemyController._playerController = _playerController;
_playerController._grid = _grid;
_enemyController._grid = _grid;
@@ -39,12 +42,15 @@ public partial class Main : Node
public void ChangeTurn()
{
if (_turnController != _playerController)
{
_turnController = _playerController;
_playerController.StartTurn();
}
else
{
_turnController = _enemyController;
_enemyController.StartTurn();
}
}