--- a/project_files/HedgewarsMobile/Classes/HWUtils.m Mon Oct 31 01:44:32 2011 +0100
+++ b/project_files/HedgewarsMobile/Classes/HWUtils.m Mon Oct 31 03:08:16 2011 +0100
@@ -29,8 +29,39 @@
static NSString *cachedModel = nil;
static NSArray *cachedColors = nil;
+static TGameType gameType = gtNone;
+static TGameStatus gameStatus = gsNone;
+
@implementation HWUtils
+#pragma mark -
+#pragma mark game status and type info
++(TGameType) gameType {
+ return gameType;
+}
+
++(void) setGameType:(TGameType) type {
+ gameType = type;
+}
+
++(TGameStatus) gameStatus {
+ return gameStatus;
+}
+
++(void) setGameStatus:(TGameStatus) status {
+ gameStatus = status;
+}
+
++(BOOL) isGameLaunched {
+ return ((gameStatus == gsLoading) || (gameStatus == gsInGame));
+}
+
++(BOOL) isGameRunning {
+ return (gameStatus == gsInGame);
+}
+
+#pragma mark -
+#pragma mark Helper Functions
+(NSString *)modelType {
if (cachedModel == nil) {
size_t size;