project_files/HedgewarsMobile/Classes/CommodityFunctions.h
changeset 5208 878e551f0b4a
parent 5207 4c9ae0f484da
child 5451 e359a79e3d08
equal deleted inserted replaced
5207:4c9ae0f484da 5208:878e551f0b4a
    60 #define IS_IPAD()               (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
    60 #define IS_IPAD()               (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
    61 #define IS_NOT_POWERFUL(x)      ([x hasPrefix:@"iPhone1"] || [x hasPrefix:@"iPod1,1"] || [x hasPrefix:@"iPod2,1"])
    61 #define IS_NOT_POWERFUL(x)      ([x hasPrefix:@"iPhone1"] || [x hasPrefix:@"iPod1,1"] || [x hasPrefix:@"iPod2,1"])
    62 #define IS_NOT_VERY_POWERFUL(x) ([x hasPrefix:@"iPad1"] || [x hasPrefix:@"iPhone2"] || [x hasPrefix:@"iPod3"] || [x hasPrefix:@"iPod4"])
    62 #define IS_NOT_VERY_POWERFUL(x) ([x hasPrefix:@"iPad1"] || [x hasPrefix:@"iPhone2"] || [x hasPrefix:@"iPod3"] || [x hasPrefix:@"iPod4"])
    63 #define IS_VERY_POWERFUL(x)     (IS_NOT_POWERFUL(x) == NO && IS_NOT_VERY_POWERFUL(x) == NO)
    63 #define IS_VERY_POWERFUL(x)     (IS_NOT_POWERFUL(x) == NO && IS_NOT_VERY_POWERFUL(x) == NO)
    64 
    64 
    65 #define rotationManager(x)      (x == UIInterfaceOrientationLandscapeRight) || (x == UIInterfaceOrientationLandscapeLeft)
       
    66 
    65 
    67 void print_free_memory (void);
    66 void print_free_memory (void);
    68 void playSound (NSString *snd);
    67 void playSound (NSString *snd);
    69 BOOL isApplePhone (void);
    68 BOOL isApplePhone (void);
    70 NSInteger randomPort (void);
    69 NSInteger randomPort (void);