19 */ |
19 */ |
20 |
20 |
21 |
21 |
22 #import <Foundation/Foundation.h> |
22 #import <Foundation/Foundation.h> |
23 |
23 |
24 #define MAX_HOGS 8 |
24 #define MAX_HOGS 8 |
|
25 #define CURRENT_AMMOSIZE 48 // also add a line in SingleWeaponViewController array |
25 |
26 |
26 #define DOCUMENTS_FOLDER() [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] |
27 #define DOCUMENTS_FOLDER() [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] |
27 |
28 |
28 #define SETTINGS_FILE() [DOCUMENTS_FOLDER() stringByAppendingString:@"/settings.plist"] |
29 #define SETTINGS_FILE() [DOCUMENTS_FOLDER() stringByAppendingString:@"/settings.plist"] |
29 #define DEBUG_FILE() [DOCUMENTS_FOLDER() stringByAppendingString:@"/debug.txt"] |
30 #define DEBUG_FILE() [DOCUMENTS_FOLDER() stringByAppendingString:@"/debug.txt"] |
38 #define GRAVES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Graves/"] |
39 #define GRAVES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Graves/"] |
39 #define BOTLEVELS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hedgehog/botlevels"] |
40 #define BOTLEVELS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hedgehog/botlevels"] |
40 #define BTN_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Btn"] |
41 #define BTN_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Btn"] |
41 #define FLAGS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Flags/"] |
42 #define FLAGS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Flags/"] |
42 #define FORTS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Forts/"] |
43 #define FORTS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Forts/"] |
|
44 #define VOICES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Sounds/voices/"] |
43 #define THEMES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Themes/"] |
45 #define THEMES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Themes/"] |
44 #define MAPS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Maps/"] |
46 #define MAPS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Maps/"] |
45 #define VOICES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Sounds/voices/"] |
47 #define MISSIONS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Missions/Maps/"] |
46 |
48 |
47 #define MSG_MEMCLEAN() DLog(@"has cleaned up some memory"); |
49 #define MSG_MEMCLEAN() DLog(@"has cleaned up some memory"); |
48 #define MSG_DIDUNLOAD() DLog(@"unloaded"); |
50 #define MSG_DIDUNLOAD() DLog(@"unloaded"); |
49 |
|
50 #define CURRENT_AMMOSIZE 48 // also add a line in SingleWeaponViewController array |
|
51 |
51 |
52 #define UICOLOR_HW_YELLOW_BODER [UIColor colorWithRed:(CGFloat)0xFE/255 green:(CGFloat)0xC0/255 blue:0 alpha:1] |
52 #define UICOLOR_HW_YELLOW_BODER [UIColor colorWithRed:(CGFloat)0xFE/255 green:(CGFloat)0xC0/255 blue:0 alpha:1] |
53 #define UICOLOR_HW_YELLOW_TEXT [UIColor colorWithRed:(CGFloat)0xF0/255 green:(CGFloat)0xD0/255 blue:0 alpha:1] |
53 #define UICOLOR_HW_YELLOW_TEXT [UIColor colorWithRed:(CGFloat)0xF0/255 green:(CGFloat)0xD0/255 blue:0 alpha:1] |
54 #define UICOLOR_HW_DARKBLUE [UIColor colorWithRed:(CGFloat)0x0F/255 green:0 blue:(CGFloat)0x42/255 alpha:1] |
54 #define UICOLOR_HW_DARKBLUE [UIColor colorWithRed:(CGFloat)0x0F/255 green:0 blue:(CGFloat)0x42/255 alpha:1] |
55 |
55 |
56 void createTeamNamed (NSString *nameWithoutExt); |
56 void createTeamNamed (NSString *nameWithoutExt); |
57 void createWeaponNamed (NSString *nameWithoutExt, int type); |
57 void createWeaponNamed (NSString *nameWithoutExt, int type); |
58 void createSchemeNamed (NSString *nameWithoutExt); |
58 void createSchemeNamed (NSString *nameWithoutExt); |
|
59 void print_free_memory (); |
|
60 void playSound (NSString *snd); |
|
61 void popError (const char *title, const char *message); |
59 BOOL rotationManager (UIInterfaceOrientation interfaceOrientation); |
62 BOOL rotationManager (UIInterfaceOrientation interfaceOrientation); |
|
63 BOOL isPhone (); |
60 NSInteger randomPort (); |
64 NSInteger randomPort (); |
61 void popError (const char *title, const char *message); |
|
62 void print_free_memory (); |
|
63 BOOL isPhone (); |
|
64 NSString *modelType (); |
65 NSString *modelType (); |
65 void playSound (NSString *snd); |
|