Пример #1
0
        public GameFrame(Focuser _focuser, Location l, Character _player)
            : base(l, _player, new List <GameAction>(), String.Format("[{0}]", l.Name), null, true, null)
        {
            RepeatCondition = () => !QuitGame;
            Focuser         = _focuser;

            AddAction(
                new CallbackAction(
                    "Move",
                    "Control your movement.",
                    Player.Body,
                    (action) =>
            {
                Focuser.IntroduceFrame(
                    new MovementFrame(l, Player)
                    );
            }
                    )
                );
            AddAction(
                new CallbackAction(
                    "Interact",
                    "Manipulate your surroundings.",
                    Player.Body,
                    (action) =>
            {
                Focuser.IntroduceFrame(
                    new MovementFrame(l, Player)
                    );
            }
                    )
                );
            AddAction(
                new CallbackAction(
                    "Use Item",
                    "Utilize an item from your inventory.",
                    Player.Body,
                    (action) =>
            {
                Focuser.IntroduceFrame(
                    new MovementFrame(l, Player)
                    );
            }
                    )
                );
            AddAction(
                new CallbackAction(
                    "Game Options",
                    "View Game Options.",
                    Player.Body,
                    (action) =>
            {
                Focuser.IntroduceFrame(
                    new MovementFrame(l, Player)
                    );
            }
                    )
                );
        }