Ejemplo n.º 1
0
		public override void RemovedFrom(DeckLocation location, Player player)
		{
			base.RemovedFrom(location, player);
			if (_CardGainingHandler != null)
				player.CardGaining -= _CardGainingHandler;
			_CardGainingHandler = null;
		}
Ejemplo n.º 2
0
		public override void AddedTo(DeckLocation location, Player player)
		{
			base.AddedTo(location, player);

			if (location == DeckLocation.Hand)
			{
				if (_CardGainingHandler != null)
					player.CardGaining -= _CardGainingHandler;

				_CardGainingHandler = new Player.CardGainingEventHandler(player_CardGaining);
				player.CardGaining += _CardGainingHandler;
			}
		}