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