#ifndef COMMON_H #define COMMON_H ///THIS FILE IS USED FOR VARIABLES THAT WILL BE ACCESED BY MULTIPLE CLASSES/FILES #include #include #include #include #include #include #include typedef struct { float x; float y; }vec2; typedef struct { char* first; char* last; }_name; enum _TYPE { //these are the main types of entities STRUCTURET = -1, PLAYERT = 0, NPCT = 1 }; #include #define SCREEN_WIDTH 1280 #define SCREEN_HEIGHT 720 //#define FULLSCREEN #define HLINE 3 //base unit of the world #define initRand(s) srand(s) #define getRand() rand() template //this fuction returns the size of any array int eAmt(T (&)[N]){return N;} extern bool gameRunning; extern unsigned int deltaTime; #endif // COMMON_H