author | smaxx |
Wed, 04 Aug 2010 17:35:45 +0200 | |
changeset 3724 | b8678667e7dc |
parent 3703 | 12d17c6e8855 |
child 3737 | 2ba6ac8a114b |
permissions | -rw-r--r-- |
3547 | 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 |
||
13 |
||
14 |
#define SETTINGS_FILE() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
|
15 |
objectAtIndex:0] stringByAppendingString:@"/settings.plist"] |
|
16 |
#define DEBUG_FILE() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
|
17 |
objectAtIndex:0] stringByAppendingString:@"/debug.txt"] |
|
18 |
||
19 |
#define TEAMS_DIRECTORY() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
|
20 |
objectAtIndex:0] stringByAppendingString:@"/Teams/"] |
|
21 |
#define WEAPONS_DIRECTORY() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
|
22 |
objectAtIndex:0] stringByAppendingString:@"/Weapons/"] |
|
23 |
#define SCHEMES_DIRECTORY() [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \ |
|
24 |
objectAtIndex:0] stringByAppendingString:@"/Schemes/"] |
|
25 |
||
26 |
#define GRAPHICS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/"] |
|
27 |
#define HATS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hats/"] |
|
28 |
#define GRAVES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Graves/"] |
|
29 |
#define BOTLEVELS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hedgehog/botlevels"] |
|
30 |
#define BTN_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Btn"] |
|
31 |
#define FLAGS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Flags/"] |
|
32 |
#define FORTS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Forts/"] |
|
33 |
#define THEMES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Themes/"] |
|
34 |
#define MAPS_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Maps/"] |
|
35 |
#define VOICES_DIRECTORY() [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Sounds/voices/"] |
|
36 |
||
3548
4d220ee7c75f
server somewhat simplified and correct sporadic crasher
koda
parents:
3547
diff
changeset
|
37 |
#define MSG_MEMCLEAN() DLog(@"has cleaned up some memory"); |
4d220ee7c75f
server somewhat simplified and correct sporadic crasher
koda
parents:
3547
diff
changeset
|
38 |
#define MSG_DIDUNLOAD() DLog(@"unloaded"); |
3547 | 39 |
|
3621 | 40 |
#define CURRENT_AMMOSIZE 46 |
41 |
||
3703
12d17c6e8855
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
koda
parents:
3670
diff
changeset
|
42 |
#define UICOLOR_HW_YELLOW_BODER [UIColor colorWithRed:(CGFloat)0xFE/255 green:(CGFloat)0xC0/255 blue:0 alpha:1] |
12d17c6e8855
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
koda
parents:
3670
diff
changeset
|
43 |
#define UICOLOR_HW_YELLOW_TEXT [UIColor colorWithRed:(CGFloat)0xF0/255 green:(CGFloat)0xD0/255 blue:0 alpha:1] |
12d17c6e8855
halfway-through finishing the frontend with new graphics by Tiy + initial 'About' page set up
koda
parents:
3670
diff
changeset
|
44 |
|
3547 | 45 |
void createTeamNamed (NSString *nameWithoutExt); |
46 |
void createWeaponNamed (NSString *nameWithoutExt); |
|
47 |
void createSchemeNamed (NSString *nameWithoutExt); |
|
48 |
BOOL rotationManager (UIInterfaceOrientation interfaceOrientation); |
|
49 |
NSInteger randomPort (); |
|
50 |
void popError (const char *title, const char *message); |
|
51 |
void print_free_memory (); |
|
3670
4c673e57f0d7
use llvm to compile, don't preview map on wimpier devices, merge vsync, fix iphone launch image
koda
parents:
3621
diff
changeset
|
52 |
BOOL isPhone (); |
4c673e57f0d7
use llvm to compile, don't preview map on wimpier devices, merge vsync, fix iphone launch image
koda
parents:
3621
diff
changeset
|
53 |
NSString *modelType (); |