(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.

This commit is contained in:
rubidium
2007-12-22 23:30:28 +00:00
parent a7d54cf946
commit 8f0e68285b
79 changed files with 87 additions and 120 deletions

View File

@@ -11,21 +11,6 @@
#include "helpers.hpp"
#include "strings_type.h"
struct Oblong {
int x, y;
int width, height;
};
struct BoundingRect {
int width;
int height;
};
struct Pair {
int a;
int b;
};
#include "map.h"
#include "slope_type.h"
@@ -46,6 +31,7 @@ struct PalSpriteID {
SpriteID sprite;
SpriteID pal;
};
typedef int32 CursorID;
typedef uint16 EngineID;
typedef uint16 UnitID;
@@ -83,6 +69,12 @@ typedef int32 Date;
typedef uint32 PlayerFace; ///< player face bits, info see in player_face.h
enum GameModes {
GM_MENU,
GM_NORMAL,
GM_EDITOR
};
enum SwitchModes {
SM_NONE = 0,
SM_NEWGAME = 1,
@@ -282,4 +274,8 @@ enum ThreadMsg {
void OTTD_SendThreadMessage(ThreadMsg msg);
extern byte _game_mode;
extern bool _exit_game;
extern byte _pause_game;
#endif /* OPENTTD_H */