Пример #1
0
        static void Main(string[] args)
        {
            Character   character   = new Character("Ryu", Ryu.GetMoveList());
            PlayerInfo  player      = new PlayerInfo(1, character);
            InputBuffer inputBuffer = new InputBuffer(player);

            // Move executedMove;

            Console.WriteLine("Input key commands to execute moves. Press Enter to quit.");

            ConsoleKey keyPressed = Console.ReadKey().Key;

            while (keyPressed != ConsoleKey.Enter)
            {
                Console.WriteLine("Need to wire up usage of Input class still...");
                //executedMove = inputBuffer.AddAndResolveInput(keyPressed);

                //if(executedMove != null)
                //{
                //    Console.WriteLine(string.Format("{0}{1} executed!", Environment.NewLine, executedMove.Name));
                //}

                //keyPressed = Console.ReadKey().Key;
            }
        }
Пример #2
0
 public void SetUp()
 {
     ryu    = new Character("Ryu", Ryu.GetMoveList());
     player = new PlayerInfo(1, ryu);
     buffer = new InputBuffer(player, 100);
 }