cocoaTouch/otherSrc/CommodityFunctions.h
author koda
Sat, 10 Apr 2010 01:09:29 +0000
changeset 3330 987ec27b6042
parent 3325 652a8ebdf667
child 3335 2520ee7a5484
permissions -rw-r--r--
add support for modifying the name of the team nicer presentation of hog+hat
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
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    13
#define TEAMS_DIRECTORY()       [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    14
                                 objectAtIndex:0] stringByAppendingString:@"/Teams/"]
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    15
#define GRAPHICS_DIRECTORY()    [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/"]
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    16
#define HATS_DIRECTORY()        [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hats/"]
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    17
#define FLAGS_DIRECTORY()       [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Flags/"]
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    18
#define FORTS_DIRECTORY()       [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Forts/"]
3325
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
    19
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
    20
void createTeamNamed (NSString *nameWithoutExt);
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    21
UIImage *mergeTwoImages (UIImage *firstImage, UIImage *secondImage);