diff -r 1998ff75321a -r d14adf1c7721 project_files/HedgewarsMobile/Classes/HWUtils.h --- a/project_files/HedgewarsMobile/Classes/HWUtils.h Sat Nov 12 15:48:55 2011 +0100 +++ b/project_files/HedgewarsMobile/Classes/HWUtils.h Sat Nov 12 17:06:49 2011 +0100 @@ -21,12 +21,24 @@ #import +typedef enum {gtNone, gtLocal, gtSave, gtMission, gtNet} TGameType; +typedef enum {gsNone, gsLoading, gsInGame, gsEnded} TGameStatus; + @interface HWUtils : NSObject { } ++(TGameType) gameType; ++(void) setGameType:(TGameType) type; ++(TGameStatus) gameStatus; ++(void) setGameStatus:(TGameStatus) status; ++(BOOL) isGameLaunched; ++(BOOL) isGameRunning; + +(NSString *)modelType; +(NSArray *)teamColors; ++(NSInteger) randomPort; ++(BOOL) isNetworkReachable; +(void) releaseCache; @end