summaryrefslogtreecommitdiffstats
path: root/src/common/misc.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-09-15 18:50:51 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-09-15 18:50:51 +0200
commitad6bc13dc2b70741ee3f006e321ba46dd421b9b5 (patch)
tree72540c0d47f5501f6080f7b03de600daed0a029a /src/common/misc.h
parent95d2f8da2c1df9a02fc1d668f2ce9c0b64c4bf65 (diff)
parent94e7fd920353c39471d8836a8bf87ffb113f1349 (diff)
downloadcolobot-ad6bc13dc2b70741ee3f006e321ba46dd421b9b5.tar.gz
colobot-ad6bc13dc2b70741ee3f006e321ba46dd421b9b5.tar.bz2
colobot-ad6bc13dc2b70741ee3f006e321ba46dd421b9b5.zip
Merge dev-common and various fixes to achieve compilation
- merged changes from dev-common - fixed many compilation errors (CBrain, UI, ...) - temporarily commented out some problematic code (e.g. input bindings) - (partially) fixed #include styling - everything compiles except for CRobotMain, CMainDialog and CStudio
Diffstat (limited to 'src/common/misc.h')
-rw-r--r--src/common/misc.h59
1 files changed, 2 insertions, 57 deletions
diff --git a/src/common/misc.h b/src/common/misc.h
index 0928acb..002c910 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 (replaced by TrackedKey enum and mouse states in app.h)
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 GetNoAccent(char letter);
extern char GetToUpper(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, const char* dir, const char* def);
-
-extern char GetLanguageLetter();
-
-