project_files/HedgewarsMobile/Classes/HWUtils.h
branchhedgeroid
changeset 6328 d14adf1c7721
parent 6247 6dfad55fd71c
child 6353 d8f62c805619
equal deleted inserted replaced
6236:1998ff75321a 6328:d14adf1c7721
    19  */
    19  */
    20 
    20 
    21 
    21 
    22 #import <Foundation/Foundation.h>
    22 #import <Foundation/Foundation.h>
    23 
    23 
       
    24 typedef enum {gtNone, gtLocal, gtSave, gtMission, gtNet} TGameType;
       
    25 typedef enum {gsNone, gsLoading, gsInGame, gsEnded} TGameStatus;
       
    26 
    24 @interface HWUtils : NSObject {
    27 @interface HWUtils : NSObject {
    25 
    28 
    26 }
    29 }
    27 
    30 
       
    31 +(TGameType) gameType;
       
    32 +(void) setGameType:(TGameType) type;
       
    33 +(TGameStatus) gameStatus;
       
    34 +(void) setGameStatus:(TGameStatus) status;
       
    35 +(BOOL) isGameLaunched;
       
    36 +(BOOL) isGameRunning;
       
    37 
    28 +(NSString *)modelType;
    38 +(NSString *)modelType;
    29 +(NSArray *)teamColors;
    39 +(NSArray *)teamColors;
       
    40 +(NSInteger) randomPort;
       
    41 +(BOOL) isNetworkReachable;
    30 +(void) releaseCache;
    42 +(void) releaseCache;
    31 
    43 
    32 @end
    44 @end
    33 
    45