project_files/HedgewarsMobile/Classes/HWUtils.h
branchhedgeroid
changeset 6328 d14adf1c7721
parent 6247 6dfad55fd71c
child 6353 d8f62c805619
--- 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 <Foundation/Foundation.h>
 
+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