Esempio n. 1
0
        IActionSystem InitActions(ControllersStorage controllers)
        {
            IActionSystem actionSystem = new ActionsController();

            if (!(actionSystem is IInteractionObject))
            {
                throw new GameException(
                          "InitGame.InitActions: ActionsController is not IAttackSystem");
            }

            controllers.Add(actionSystem as IInteractionObject);

            actionSystem.Add(LootName.gun, new ShootoutController <BombViewFabric>());
            actionSystem.Add(LootName.cutlass, new PrickAttackController());

            return(actionSystem);
        }