diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-09 17:51:10 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-09 17:51:10 +0200 |
commit | efe4f0baddf10124581e4fcb88d55a52838b06a1 (patch) | |
tree | c07882eb005e486abe1dbb03d008f6cca2898fe6 /src/common/misc.h | |
parent | b3d5491af4f953e8d63800897c40d602de9e9305 (diff) | |
download | colobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.tar.gz colobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.tar.bz2 colobot-efe4f0baddf10124581e4fcb88d55a52838b06a1.zip |
Refactoring in src/common
- refactored CInstanceManager and some headers
- removed old headers
Diffstat (limited to 'src/common/misc.h')
-rw-r--r-- | src/common/misc.h | 59 |
1 files changed, 2 insertions, 57 deletions
diff --git a/src/common/misc.h b/src/common/misc.h index dca801f..66da478 100644 --- a/src/common/misc.h +++ b/src/common/misc.h @@ -22,55 +22,7 @@ #include <time.h> -#include "common/metafile.h" -#include "common/event.h" -#include "common/error_ids.h" - - -extern CMetaFile g_metafile; - - - -// Existing classes. - -enum ClassType -{ - CLASS_EVENT = 1, - CLASS_INTERFACE = 2, - CLASS_MAIN = 3, - CLASS_ENGINE = 4, - CLASS_TERRAIN = 5, - CLASS_OBJECT = 6, - CLASS_PHYSICS = 7, - CLASS_BRAIN = 8, - CLASS_CAMERA = 9, - CLASS_LIGHT = 10, - CLASS_PARTICULE = 11, - CLASS_AUTO = 12, - CLASS_DISPLAYTEXT = 13, - CLASS_PYRO = 14, - CLASS_SCRIPT = 15, - CLASS_TEXT = 16, - CLASS_STUDIO = 17, - CLASS_WATER = 18, - CLASS_CLOUD = 19, - CLASS_MOTION = 20, - CLASS_SOUND = 21, - CLASS_PLANET = 22, - CLASS_TASKMANAGER = 23, - CLASS_DIALOG = 24, - CLASS_MAP = 25, - CLASS_SHORT = 26, - CLASS_BLITZ = 27, -}; - -const int CLASS_MAX = 30; - - - - -// Keyboard state. - +// TODO: to be removed const int KS_PAGEUP = (1<<4); const int KS_PAGEDOWN = (1<<5); const int KS_SHIFT = (1<<6); @@ -84,10 +36,7 @@ const int KS_NUMRIGHT = (1<<13); const int KS_NUMPLUS = (1<<14); const int KS_NUMMINUS = (1<<15); - -// Procedures. - -extern EventType GetUniqueEventType(); +// TODO: rewrite/refactor or remove extern char RetNoAccent(char letter); extern char RetToUpper(char letter); @@ -100,7 +49,3 @@ extern bool CopyFileListToTemp(char* filename, int* list, int total); extern void AddExt(char* filename, char* ext); extern void UserDir(bool bUser, char* dir); extern void UserDir(char* buffer, char* dir, char* def); - -extern char RetLanguageLetter(); - - |