Esempio n. 1
0
 public Ball(short x, short y, SMALL_RECT ballArea, Terminal aTerm)
 {
     fPosition.X = x;
     fPosition.Y = y;
     xInc = 1;
     yInc = 1;
     fBallArea = ballArea;
     fTerm = aTerm;
 }
Esempio n. 2
0
        public Paddle(SMALL_RECT playArea, short row, PaddleSide aSide, Terminal aTerm)
        {
            fPaddleHeight = 5;
            fPlayArea = playArea;
            fColor = ConsoleTextColor.White;
            fSide = aSide;
            fTerm = aTerm;
            
            short column;
            if (PaddleSide.Left == aSide)
                column = 0;
            else
                column = 79;

            fPosition = new COORD(column, row);
        }
Esempio n. 3
0
 public static extern bool SetConsoleWindowInfo(IntPtr hConsoleOutput, 
     [MarshalAs(UnmanagedType.Bool)]bool bAbsolute, 
     ref SMALL_RECT lpConsoleWindow);
Esempio n. 4
0
 public static extern bool ScrollConsoleScreenBuffer(IntPtr hConsoleOutput,
     ref SMALL_RECT lpScrollRectangle, IntPtr lpClipRectangle,
     COORD dwDestinationOrigin, ref CHAR_INFO lpFill);
Esempio n. 5
0
 public static extern bool SetConsoleWindowInfo(IntPtr hConsoleOutput,
                                                [MarshalAs(UnmanagedType.Bool)] bool bAbsolute,
                                                ref SMALL_RECT lpConsoleWindow);
Esempio n. 6
0
 public static extern bool ScrollConsoleScreenBuffer(IntPtr hConsoleOutput,
                                                     ref SMALL_RECT lpScrollRectangle, IntPtr lpClipRectangle,
                                                     COORD dwDestinationOrigin, ref CHAR_INFO lpFill);