Example #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;
 }
Example #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);
        }
Example #3
0
 public static extern bool SetConsoleWindowInfo(IntPtr hConsoleOutput, 
     [MarshalAs(UnmanagedType.Bool)]bool bAbsolute, 
     ref SMALL_RECT lpConsoleWindow);
Example #4
0
 public static extern bool ScrollConsoleScreenBuffer(IntPtr hConsoleOutput,
     ref SMALL_RECT lpScrollRectangle, IntPtr lpClipRectangle,
     COORD dwDestinationOrigin, ref CHAR_INFO lpFill);
Example #5
0
 public static extern bool SetConsoleWindowInfo(IntPtr hConsoleOutput,
                                                [MarshalAs(UnmanagedType.Bool)] bool bAbsolute,
                                                ref SMALL_RECT lpConsoleWindow);
Example #6
0
 public static extern bool ScrollConsoleScreenBuffer(IntPtr hConsoleOutput,
                                                     ref SMALL_RECT lpScrollRectangle, IntPtr lpClipRectangle,
                                                     COORD dwDestinationOrigin, ref CHAR_INFO lpFill);