예제 #1
0
        public KeypressQueue(KeyMap the_input, bool p1)
        {
            keypress = new LinkedList <Keypress>();
            times    = new LinkedList <int>();

            input = the_input;

            pongmoves = new PongMove[4] {
                new PongMoveMovementBACK(p1), new PongMoveMovementFRONT(p1), new PongMoveMovementLEFT(p1), new PongMoveMovementRIGHT(p1)
            };
        }
예제 #2
0
 public InputHuman(KeyMap keymap, bool p1)
 {
     queue = new KeypressQueue(keymap, p1);
 }