jf8441's picture
Upload 25 files
0ef7a64 verified
raw
history blame
948 Bytes
/*
Name:Wong Pui Shan
Sdutent ID:52611804
program: AScISD
Name: HAR Chiu Kwong Samson
Sdutent ID:52629360
program: AScISD
Name: LAM Cheuk Man
Sdutent ID:52621140
program: AScISD
Name:KO Jeffrey KO
Sdutent ID:525 695 30
program: AScISD
*/
#ifndef UTILITIES_H
#define UTILITIES_H
#include <windows.h>
#include <conio.h>
#include "Size.h"
using namespace std;
#define FOREGROUND_WHITE FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY
#define FOREGROUND_YELLOW FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_INTENSITY
#define BACKGROUND_WHITE BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_INTENSITY
class Utilities
{
private:
HANDLE hConsole;
public:
Utilities();
void initScreen();
int nonblockingGetch();
int checkKey();
void getWindowSize(Size&);
void clearConsole();
void gotoXY(int x, int y);
void changeColour(WORD colour);
};
#endif