#pragma once #include "Util.h" #define MAX_CONSOLE_BUFFER_HEIGHT 9900 #define MIN_CONSOLE_BUFFER_HEIGHT 9000 #define MIN_CONSOLE_WINDOW_WIDTH 100 #define MIN_CONSOLE_WINDOW_HEIGHT 100 class CConsole { HANDLE m_hConsole; CONSOLE_SCREEN_BUFFER_INFO m_hBufferInfo; COORD m_coordLargestWindowSize; public: CConsole(); CConsole(DWORD _dwConsole); ~CConsole(){}; /*ACCESORS*/ COORD GetBufferSize() const { return m_hBufferInfo.dwSize; }; COORD GetMaxWindowSize() const{ return m_hBufferInfo.dwMaximumWindowSize; }; void SetWindowSize(int _width, int _height); void SetCursorPosition(short _xPos, short _yCord); void ClearScreen(); };