5Y5T3M/Assets/Scripts/Player.cs
2025-09-18 17:37:35 +02:00

20 lines
779 B
C#

using System.Collections.Generic;
using UnityEngine;
public class Player
{
/** Possible Moves:
* - NodeA to NodeB (connection built): move Units (will attack if NodeB is hostile; cant traverse multiple unclaimed nodes)
* - NodeA to NodeB (connection empty): build connection (-1 energy, takes 1 round)
* - NodeA to NodeB (connection under de/-construction): intervene by attacking (will destroy connection if succesfull)
* - Click connection: Option to Destruct (-1 energy, takes 1 round) or Blast (-2 energy, immediately) Connection <- blast ist schlecht weil problem
*
*
*/
public int id;
public int energy;
public List<Node> GetOwnedNodes() => GameManager.Instance.GetNodes().FindAll(n => n.Owner == this.id);
}