first commit

This commit is contained in:
2026-01-19 17:44:00 -05:00
commit e2b7d6616a
67 changed files with 1608 additions and 0 deletions

34
Gameplay/Boss.cs Normal file
View File

@@ -0,0 +1,34 @@
using Godot;
using System;
using System.Collections.Generic;
using System.Linq;
public partial class Boss : Enemy
{
public List<Dragon> _dragons;
public override void _Ready()
{
base._Ready();
_number = 1;
_dragons = GetChildren().Where(c=>c is Dragon).Cast<Dragon>().ToList();
for (int i = 0; i < _dragons.Count; i++)
{
_dragons[i]._owner = this;
_dragons[i]._number = _board._cells[i]._address;
_board._cells[i]._tenant = _dragons[i];
}
}
public override void PassPlayer(Player PLAYER)
{
base.PassPlayer(PLAYER);
_dragons.ForEach(d=>d.PassPlayer(PLAYER));
}
public override void ClickCell(Cell CLICKEDCELL)
{
_playerOpponent.Challenge(CLICKEDCELL._tenant);
}
}