cocoaTouch/otherSrc/CommodityFunctions.h
author koda
Tue, 13 Apr 2010 14:39:05 +0000
changeset 3339 d558bc5a73c5
parent 3335 2520ee7a5484
child 3340 96dd168b080b
permissions -rw-r--r--
lots of untested stuff for the ifrontend
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
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents: 3335
diff changeset
    20
#define VOICES_DIRECTORY()	[[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Sounds/voices/"]
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    21
#define GRAPHICS_DIRECTORY()    [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/"]
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    22
#define HATS_DIRECTORY()        [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hats/"]
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents: 3335
diff changeset
    23
#define FLAGS_DIRECTORY()       [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Flags/"
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents: 3335
diff changeset
    24
#define GRAVES_DIRECTORY()      [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Graves/"]
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    25
#define FORTS_DIRECTORY()       [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Forts/"]
3325
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
    26
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
    27
void createTeamNamed (NSString *nameWithoutExt);
3339
d558bc5a73c5 lots of untested stuff for the ifrontend
koda
parents: 3335
diff changeset
    28
UIImage *mergeHogHatSprites (UIImage *firstImage, UIImage *secondImage);
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