22 lines
808 B
C#
22 lines
808 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
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);
|
|
}
|