public Player(string id, Game game) { Id = id; Health = STARTING_HEALTH; Money = STARTING_MONEY; Minions = new List <Minion>(); Towers = new TowerCollection(); Caretaker = new Caretaker(); Originator = new Originator(this); Game = game; }
public PlayerMemento SaveState(int price, TowerCollection towers) { return(new PlayerMemento(price, towers)); }
public PlayerMemento(int price, TowerCollection towers) { this.price = price; this.towers = towers; }