示例#1
0
 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;
 }
示例#2
0
 public PlayerMemento SaveState(int price, TowerCollection towers)
 {
     return(new PlayerMemento(price, towers));
 }
示例#3
0
 public PlayerMemento(int price, TowerCollection towers)
 {
     this.price  = price;
     this.towers = towers;
 }