public Card(ICardTemplate cardTemplate,Player player, Game game) : base() { CardTemplate = cardTemplate; Player = player; Owner = Player; Location = LOCATION.Library; Game = game; Game.AddCard(this); EventHub.AddObserver(EventConstants.StartOfStep,untapHandler); }
public void AddPlayer(Player player) { Players.Add(player); log.Info (String.Format ("Player [{0}] joined game [{1}]",player.Id,Id)); }
public static Card GetInstance(string name, Player player) { return new Card(cardTemplates[name],player,player.Game); }