cocoaTouch/otherSrc/CommodityFunctions.h
changeset 3490 016b3172b645
parent 3487 b1d00f1950c8
child 3513 f589230fa21b
equal deleted inserted replaced
3489:aedf289192f5 3490:016b3172b645
    32 #define FORTS_DIRECTORY()       [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Forts/"]
    32 #define FORTS_DIRECTORY()       [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Forts/"]
    33 #define THEMES_DIRECTORY()      [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Themes/"]
    33 #define THEMES_DIRECTORY()      [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Themes/"]
    34 #define MAPS_DIRECTORY()        [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Maps/"]
    34 #define MAPS_DIRECTORY()        [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Maps/"]
    35 #define VOICES_DIRECTORY()      [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Sounds/voices/"]
    35 #define VOICES_DIRECTORY()      [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Sounds/voices/"]
    36 
    36 
    37 #define MSG_MEMCLEAN()          DLog(@"has cleaned up some memory");
    37 #define MSG_MEMCLEAN()          DLog(@"has cleaned up some memory"); print_free_memory()
       
    38 #define MSG_DIDUNLOAD()         DLog(@"did unload");
    38 
    39 
    39 void createTeamNamed (NSString *nameWithoutExt);
    40 void createTeamNamed (NSString *nameWithoutExt);
    40 void createSchemeNamed (NSString *nameWithoutExt);
    41 void createSchemeNamed (NSString *nameWithoutExt);
    41 BOOL rotationManager (UIInterfaceOrientation interfaceOrientation);
    42 BOOL rotationManager (UIInterfaceOrientation interfaceOrientation);
    42 NSInteger randomPort ();
    43 NSInteger randomPort ();
    43 void popError (const char *title, const char *message);
    44 void popError (const char *title, const char *message);
       
    45 void print_free_memory ();
    44 
    46 
    45 
    47 #if __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_3_2
    46 #ifndef __IPHONE_3_2	// if iPhoneOS is 3.2 or greater then __IPHONE_3_2 will be defined
       
    47 typedef enum {
    48 typedef enum {
    48     UIUserInterfaceIdiomPhone,           // iPhone and iPod touch style UI
    49     UIUserInterfaceIdiomPhone,           // iPhone and iPod touch style UI
    49     UIUserInterfaceIdiomPad,             // iPad style UI
    50     UIUserInterfaceIdiomPad,             // iPad style UI
    50 } UIUserInterfaceIdiom;
    51 } UIUserInterfaceIdiom;
    51 #define UI_USER_INTERFACE_IDIOM() UIUserInterfaceIdiomPhone
    52 #define UI_USER_INTERFACE_IDIOM() UIUserInterfaceIdiomPhone