cocoaTouch/otherSrc/CommodityFunctions.h
author koda
Wed, 21 Apr 2010 01:57:23 +0000
changeset 3361 cfc6cd502f85
parent 3352 ac5d14a35482
child 3364 e5403e2bf02c
permissions -rw-r--r--
buttons for number of hogs in game config buttons for color of team in game config update and code cleanup fixed crashes at uitextfield
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3325
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
     1
//
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
     2
//  CommodityFunctions.h
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
     3
//  HedgewarsMobile
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
     4
//
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
     5
//  Created by Vittorio on 08/04/10.
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
     7
//
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
     8
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
     9
#import <Foundation/Foundation.h>
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
    10
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
    11
#define MAX_HOGS 8
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
    12
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents: 3335
diff changeset
    13
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3330
diff changeset
    14
#define SETTINGS_FILE()         [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3330
diff changeset
    15
                                 objectAtIndex:0] stringByAppendingString:@"/settings.plist"]
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents: 3335
diff changeset
    16
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    17
#define TEAMS_DIRECTORY()       [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    18
                                 objectAtIndex:0] stringByAppendingString:@"/Teams/"]
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents: 3335
diff changeset
    19
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    20
#define GRAPHICS_DIRECTORY()    [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/"]
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    21
#define HATS_DIRECTORY()        [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hats/"]
3352
ac5d14a35482 complete previews on the team settings
koda
parents: 3340
diff changeset
    22
#define GRAVES_DIRECTORY()      [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Graves/"]
ac5d14a35482 complete previews on the team settings
koda
parents: 3340
diff changeset
    23
#define BOTLEVELS_DIRECTORY()   [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hedgehog/botlevels"]
ac5d14a35482 complete previews on the team settings
koda
parents: 3340
diff changeset
    24
#define FORTS_DIRECTORY()       [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Forts/"]
ac5d14a35482 complete previews on the team settings
koda
parents: 3340
diff changeset
    25
#define VOICES_DIRECTORY()      [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Sounds/voices/"]
3340
96dd168b080b fix all of what was committed before
koda
parents: 3339
diff changeset
    26
#define FLAGS_DIRECTORY()       [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Flags/"]
3325
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
    27
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
    28
void createTeamNamed (NSString *nameWithoutExt);
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3330
diff changeset
    29
BOOL rotationManager (UIInterfaceOrientation interfaceOrientation);
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents: 3335
diff changeset
    30