author | koda |
Sun, 25 Apr 2010 02:30:42 +0000 | |
changeset 3365 | 37ac593e9027 |
parent 3364 | e5403e2bf02c |
child 3373 | c1ff724a5c34 |
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"] |
|
3339 | 18 |
|
3330 | 19 |
#define TEAMS_DIRECTORY() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
20 |
objectAtIndex:0] stringByAppendingString:@"/Teams/"] |
|
3339 | 21 |
|
3330 | 22 |
#define GRAPHICS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/"] |
23 |
#define HATS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hats/"] |
|
3352 | 24 |
#define GRAVES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Graves/"] |
25 |
#define BOTLEVELS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hedgehog/botlevels"] |
|
26 |
#define FORTS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Forts/"] |
|
27 |
#define VOICES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Sounds/voices/"] |
|
3340 | 28 |
#define FLAGS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Flags/"] |
3325 | 29 |
|
30 |
void createTeamNamed (NSString *nameWithoutExt); |
|
3335 | 31 |
BOOL rotationManager (UIInterfaceOrientation interfaceOrientation); |
3365
37ac593e9027
wow all these files only for land preview and seed generation
koda
parents:
3364
diff
changeset
|
32 |
NSInteger randomPort(); |