示例#1
0
        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);
        }
示例#2
0
 public void AddPlayer(Player player)
 {
     Players.Add(player);
     log.Info (String.Format ("Player [{0}] joined game [{1}]",player.Id,Id));
 }
示例#3
0
		public static Card GetInstance(string name, Player player)
		{
			return new Card(cardTemplates[name],player,player.Game);
		}