Exemplo n.º 1
0
 public CpuCharacterPresenter(
     ICharacterView characterView,
     IPhaseProvider phaseProvider,
     IPhaseRegister phaseRegister,
     ICurrentSkillModel currentSkill,
     ITurnCharacterProvider turnCharacter,
     IDamagePhaseFinalizer damagePhaseFinalizer,
     IResidueCharacterRegister residueCharacter,
     IResidueEnemyRegister enemyRegister,
     IMoveLoadProvider moveLoadProvider,
     ICharacterMove characterMove,
     ICpuUseCase cpuUseCase,
     Character character
     )
 {
     _characterView        = characterView;
     _phaseProvider        = phaseProvider;
     _phaseRegister        = phaseRegister;
     _currentSkill         = currentSkill;
     _turnCharacter        = turnCharacter;
     _damagePhaseFinalizer = damagePhaseFinalizer;
     _enemyRegister        = enemyRegister;
     _moveLoadProvider     = moveLoadProvider;
     _characterMove        = characterMove;
     _cpuUseCase           = cpuUseCase;
     _character            = character;
 }
Exemplo n.º 2
0
 public CharacterMovePresenter(
     ICharacterView characterView,
     IMoveLoadProvider moveLoadProvider,
     ITurnCharacterProvider turnCharacter,
     ICharacterMove characterMove
     )
 {
     _characterView    = characterView;
     _moveLoadProvider = moveLoadProvider;
     _turnCharacter    = turnCharacter;
     _characterMove    = characterMove;
 }
Exemplo n.º 3
0
        void InitializeCharacter()
        {
            mCharacter = GetComponent <IMCharacter>();

            mCharacterMove = GetComponent <ICharacterMove>();

            if (mCharacter != null)
            {
                var keys = new Dictionary <string, BoolEvent>();

                foreach (var dinput in DInputs)
                {
                    keys.Add(dinput.Key, dinput.Value.OnInputChanged); //Use OnINPUT CHANGE INSTEAD OF ON INPUT PRESSED ... IS CALLED LESS TImes
                }
                mCharacter.InitializeInputs(keys);
            }
        }
Exemplo n.º 4
0
 void InitializeCharacter()
 {
     mCharacterMove = GetComponent <ICharacterMove>();
 }
Exemplo n.º 5
0
 protected void InitializeCharacter() => mCharacterMove = GetComponent <ICharacterMove>();
Exemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     animal = GetComponentInParent <ICharacterMove>();
 }