2025-09-17 21:48:38 +02:00
|
|
|
using System.Collections.Generic;
|
2025-09-17 10:12:15 +02:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
2025-09-18 17:37:35 +02:00
|
|
|
public class Player
|
2025-09-17 10:12:15 +02:00
|
|
|
{
|
2025-09-17 21:48:38 +02:00
|
|
|
/** 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)
|
2025-09-18 17:37:35 +02:00
|
|
|
* - Click connection: Option to Destruct (-1 energy, takes 1 round) or Blast (-2 energy, immediately) Connection <- blast ist schlecht weil problem
|
2025-09-17 21:48:38 +02:00
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
public int id;
|
|
|
|
|
|
2025-09-18 17:37:35 +02:00
|
|
|
public int energy;
|
2025-09-17 21:48:38 +02:00
|
|
|
|
2025-09-17 23:38:11 +02:00
|
|
|
public List<Node> GetOwnedNodes() => GameManager.Instance.GetNodes().FindAll(n => n.Owner == this.id);
|
2025-09-17 10:12:15 +02:00
|
|
|
}
|