29 lines
694 B
C#
29 lines
694 B
C#
using Godot;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
public partial class EnemyController : TurnController
|
|
{
|
|
|
|
public PackedScene _enemyScene = GD.Load<PackedScene>("res://Enemy.tscn");
|
|
public List<Enemy> _enemies = new();
|
|
public void AddEnemy()
|
|
{
|
|
Enemy newEnemy = _enemyScene.Instantiate<Enemy>();
|
|
// newEnemy.PlaceOrMove(_grid._gridMarkers.Last()[_rng.Next(_grid._gridMarkers.Last().Count)]);
|
|
// newEnemy._commander = _commander;
|
|
// newEnemy._grid = _grid;
|
|
_enemies.Add(newEnemy);
|
|
AddChild(newEnemy);
|
|
}
|
|
public override void StartTurn()
|
|
{
|
|
|
|
}
|
|
|
|
public void Initiate()
|
|
{
|
|
|
|
}
|
|
}
|