Exemple #1
0
 public BonusThrow(IPlayerModel playerModel, IBonusModel bonusModel, Vector3 position,
                   IOnPlayerEffect <IBonusModel> playerEffect)
 {
     _player         = playerModel;
     _bonusThrowPull = new BonusThrowPull(bonusModel, position);
     _playerEffect   = playerEffect;
 }
 public FlatFilePullIntegration(Guid key, FlatFileIndentifier file, PullClientIdentifier pullClient, FrequencyIdentifier frequency, IPull<FlatFileInitializePullCommand> puller)
 {
     Key = key;
     File = file;
     Puller = puller;
     PullClient = pullClient;
     Frequency = frequency;
 }
Exemple #3
0
        public GrenadeThrow(IPull <IGrenadeModel> grenades, Transform throwPoint, ITakeObject takeObject)
        {
            _grenades = grenades;

            _throwPoint = throwPoint;

            _takeObject = takeObject;

            _addedGrenades = new List <IGrenadeModel>();
            _timers        = new List <UpTimer>();
        }
 public void Execute(object command, IPull executor)
 {
     try
     {
         executor.Pull(command);
     }
     finally
     {
         _container.Release(executor);
     }
 }
Exemple #5
0
 public IPlayerModel Create(ICharacterModel character, IPull <IGrenadeModel> grenadePull, IPull <IMineModel> minePull)
 {
     return(_playerFactory.Create(character, grenadePull, minePull));
 }
Exemple #6
0
 public PlayerModel(ICharacterModel character, IPull <IGrenadeModel> grenades, IPull <IMineModel> mines)
 {
     Character = character;
     Grenades  = grenades;
     Mines     = mines;
 }
Exemple #7
0
 public GrenadeInput(IPull <IGrenadeModel> grenades, Transform throwGrenadePosition,
                     ITakeObject takeObject)
 {
     _grenadeThrow = new GrenadeThrow(grenades, throwGrenadePosition, takeObject);
     _grenadeInput = new PCUserInputGrenade();
 }
Exemple #8
0
 public MineInput(IPull <IMineModel> mines, Transform setPoint)
 {
     _mineSetter = new MineSetter(mines, setPoint);
     _mineInput  = new PCUserInputMine();
 }
Exemple #9
0
        public MineSetter(IPull <IMineModel> minePull, Transform setPoint)
        {
            _setPoint = setPoint;

            _minePull = minePull;
        }