From 1f6043458c2677f3651618bc23f8b0a24598bffb Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 22 Dec 2007 23:30:28 +0000 Subject: (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. --- src/openttd.h | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'src/openttd.h') diff --git a/src/openttd.h b/src/openttd.h index 664a0b72c..7ad6de5b9 100644 --- a/src/openttd.h +++ b/src/openttd.h @@ -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 */ -- cgit v1.2.3-54-g00ecf