Esempio n. 1
0
        public void InitCommon(IFsmTransitionHelper infoProvider, ICharacterInfoProvider characterInfo)
        {
            AddState(ActionState.CreateCommonNullState(), infoProvider, characterInfo);

            AddState(ActionState.CreateFireState(), infoProvider, characterInfo);
            AddState(ActionState.CreateSpecialFireState(), infoProvider, characterInfo);
            AddState(ActionState.CreateSpecialFireHold(), infoProvider, characterInfo);
            AddState(ActionState.CreateSpecialFireEnd(), infoProvider, characterInfo);
            AddState(ActionState.CreateInjuryState(), infoProvider, characterInfo);
            AddState(ActionState.CreateReloadState(), infoProvider, characterInfo);
            AddState(ActionState.CreateSpecialReloadState(), infoProvider, characterInfo);

            AddState(ActionState.CreateUnarmState(), infoProvider, characterInfo);
            AddState(ActionState.CreateDrawState(), infoProvider, characterInfo);
            AddState(ActionState.CreateSwitchWeaponState(), infoProvider, characterInfo);
            AddState(ActionState.CreatePickUpState(), infoProvider, characterInfo);
            AddState(ActionState.CreateMeleeAttackState(), infoProvider, characterInfo);
            AddState(ActionState.CreateGrenadeState(), infoProvider, characterInfo);
            AddState(ActionState.CreateOpenDoorState(), infoProvider, characterInfo);
            AddState(ActionState.CreatePropsState(), infoProvider, characterInfo);

            AddState(ActionState.CreateGlidingState(), infoProvider, characterInfo);
            AddState(ActionState.CreateParachutingState(), infoProvider, characterInfo);

            AddState(ActionState.CreateBuriedBombState(), infoProvider, characterInfo);
            AddState(ActionState.CreateDismantleBombState(), infoProvider, characterInfo);

            AddState(ActionState.CreateTransfigurationStartState(), infoProvider, characterInfo);
            AddState(ActionState.CreateTransfigurationFinishState(), infoProvider, characterInfo);

            _resetParam = ResetCommon;
        }
Esempio n. 2
0
        public void InitTransfigurationState(IFsmTransitionHelper infoProvider, ICharacterInfoProvider characterInfo)
        {
            AddState(ActionState.CreateTransfigurationNullState(), infoProvider, characterInfo);
            AddState(ActionState.CreateTransfigurationStartState(), infoProvider, characterInfo);
            AddState(ActionState.CreateTransfigurationFinishState(), infoProvider, characterInfo);

            _resetParam = ResetTransfiguration;
        }