author | koda |
Sun, 20 Jun 2010 18:35:59 +0200 | |
changeset 3523 | 6592fbb969da |
parent 3522 | 156c04c6a3d8 |
permissions | -rw-r--r-- |
3325 | 1 |
// |
2 |
// CommodityFunctions.h |
|
3 |
// HedgewarsMobile |
|
4 |
// |
|
5 |
// Created by Vittorio on 08/04/10. |
|
6 |
// Copyright 2010 __MyCompanyName__. All rights reserved. |
|
7 |
// |
|
8 |
||
9 |
#import <Foundation/Foundation.h> |
|
10 |
||
11 |
#define MAX_HOGS 8 |
|
12 |
||
3339 | 13 |
|
3335 | 14 |
#define SETTINGS_FILE() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
15 |
objectAtIndex:0] stringByAppendingString:@"/settings.plist"] |
|
3364 | 16 |
#define GAMECONFIG_FILE() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
17 |
objectAtIndex:0] stringByAppendingString:@"/gameconfig.plist"] |
|
3377 | 18 |
#define DEBUG_FILE() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
19 |
objectAtIndex:0] stringByAppendingString:@"/debug.txt"] |
|
3339 | 20 |
|
3330 | 21 |
#define TEAMS_DIRECTORY() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
22 |
objectAtIndex:0] stringByAppendingString:@"/Teams/"] |
|
3522
156c04c6a3d8
add initial stubs for selecting weapons in the ifrontend
koda
parents:
3514
diff
changeset
|
23 |
#define WEAPONS_DIRECTORY() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
156c04c6a3d8
add initial stubs for selecting weapons in the ifrontend
koda
parents:
3514
diff
changeset
|
24 |
objectAtIndex:0] stringByAppendingString:@"/Weapons/"] |
3479 | 25 |
#define SCHEMES_DIRECTORY() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
26 |
objectAtIndex:0] stringByAppendingString:@"/Schemes/"] |
|
3339 | 27 |
|
3330 | 28 |
#define GRAPHICS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/"] |
29 |
#define HATS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hats/"] |
|
3352 | 30 |
#define GRAVES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Graves/"] |
31 |
#define BOTLEVELS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hedgehog/botlevels"] |
|
3479 | 32 |
#define BTN_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Btn"] |
3373 | 33 |
#define FLAGS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Flags/"] |
3352 | 34 |
#define FORTS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Forts/"] |
3373 | 35 |
#define THEMES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Themes/"] |
36 |
#define MAPS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Maps/"] |
|
3352 | 37 |
#define VOICES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Sounds/voices/"] |
3325 | 38 |
|
3490 | 39 |
#define MSG_MEMCLEAN() DLog(@"has cleaned up some memory"); print_free_memory() |
40 |
#define MSG_DIDUNLOAD() DLog(@"did unload"); |
|
3487 | 41 |
|
3325 | 42 |
void createTeamNamed (NSString *nameWithoutExt); |
3522
156c04c6a3d8
add initial stubs for selecting weapons in the ifrontend
koda
parents:
3514
diff
changeset
|
43 |
void createWeaponNamed (NSString *nameWithoutExt); |
3479 | 44 |
void createSchemeNamed (NSString *nameWithoutExt); |
3335 | 45 |
BOOL rotationManager (UIInterfaceOrientation interfaceOrientation); |
3373 | 46 |
NSInteger randomPort (); |
47 |
void popError (const char *title, const char *message); |
|
3490 | 48 |
void print_free_memory (); |
3374
0d522416d97f
lazy loading for all the tables with images (might affect performance but ui feels much more responsive)
koda
parents:
3373
diff
changeset
|
49 |