Example #1
0
        public void Initialize(IHashDependancy hashDependancy, Game game)
        {
            Game = game;

            _abilities.Initialize(game, hashDependancy);
            _cardBase.Changed += OnCardBaseChanged;
        }
Example #2
0
        public override void Initialize(Game game, IHashDependancy hashDependancy)
        {
            base.Initialize(game, hashDependancy);

            _card              = (Card)hashDependancy;
            _cardBase.Changed += OnCardBaseChanged;
        }
Example #3
0
        public virtual void Initialize(Game game, IHashDependancy hashDependancy)
        {
            Game = game;

            _modifiers.Initialize(game.ChangeTracker);
            _currentValue.Initialize(game.ChangeTracker, hashDependancy);
        }
Example #4
0
        public void Initialize(Game game, IHashDependancy hashDependancy)
        {
            Game = game;

            _cardTypes.Initialize(game, hashDependancy);
            _colors.Initialize(game, hashDependancy);
            _cardBase.Changed += OnCardBaseChanged;
        }
Example #5
0
        public void Initialize(Game game, IHashDependancy hashDependancy)
        {
            _power.Initialize(game, hashDependancy);
            _toughness.Initialize(game, hashDependancy);
            _switchPowerAndToughness.Initialize(game.ChangeTracker, hashDependancy);

            _cardBase.Changed += OnCardBaseChanged;
        }
Example #6
0
        public void Initialize(Game game, IHashDependancy hashDependancy)
        {
            Game = game;

            Changed.Initialize(ChangeTracker);
            _parameters.Initialize(game, hashDependancy);
            _parameters.Changed += OnParametersChanged;
        }
Example #7
0
        public TrackableSet <T> Initialize(INotifyChangeTracker changeTracker, IHashDependancy hashDependancy = null)
        {
            if (hashDependancy != null)
            {
                _hashDependancy = hashDependancy;
            }

            _changeTracker = changeTracker;
            return(this);
        }
Example #8
0
        public void Initialize(IHashDependancy hashDependancy, Game game)
        {
            Game = game;

            _all.Initialize(ChangeTracker, hashDependancy);

            foreach (var staticAbility in _all)
            {
                staticAbility.Initialize(ChangeTracker);
            }

            _active.Initialize(ChangeTracker);
        }
Example #9
0
 public override void Initialize(Game game, IHashDependancy hashDependancy)
 {
     base.Initialize(game, hashDependancy);
     _card = (Card)hashDependancy;
 }
Example #10
0
 public void Initialize(ChangeTracker changeTracker, IHashDependancy hashDependancy)
 {
     _cardTypes.Initialize(changeTracker, hashDependancy);
       _colors.Initialize(changeTracker, hashDependancy);
 }
Example #11
0
 public void Initialize(Game game, IHashDependancy hashDependancy)
 {
     _power.Initialize(game, hashDependancy);
       _toughness.Initialize(game, hashDependancy);
       _switchPowerAndToughness.Initialize(game.ChangeTracker, hashDependancy);
 }
Example #12
0
 public void Initialize(ChangeTracker changeTracker, IHashDependancy hashDependancy)
 {
     _cardTypes.Initialize(changeTracker, hashDependancy);
     _colors.Initialize(changeTracker, hashDependancy);
 }
Example #13
0
        public void Initialize(IHashDependancy hashDependancy, Game game)
        {
            Game = game;

              _all.Initialize(ChangeTracker, hashDependancy);

              foreach (var staticAbility in _all)
              {
            staticAbility.Initialize(ChangeTracker);
              }

              _active.Initialize(ChangeTracker);
        }