cocoaTouch/otherSrc/CommodityFunctions.h
author koda
Sun, 11 Apr 2010 03:43:13 +0000
changeset 3335 2520ee7a5484
parent 3330 987ec27b6042
child 3339 d558bc5a73c5
permissions -rw-r--r--
new manager for handling (future) rotations added a macro for the settings file
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
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3330
diff changeset
    13
#define SETTINGS_FILE()         [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3330
diff changeset
    14
                                 objectAtIndex:0] stringByAppendingString:@"/settings.plist"]
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    15
#define TEAMS_DIRECTORY()       [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    16
                                 objectAtIndex:0] stringByAppendingString:@"/Teams/"]
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    17
#define GRAPHICS_DIRECTORY()    [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/"]
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    18
#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
    19
#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
    20
#define FORTS_DIRECTORY()       [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Forts/"]
3325
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
    21
652a8ebdf667 moved around team creation
koda
parents:
diff changeset
    22
void createTeamNamed (NSString *nameWithoutExt);
3330
987ec27b6042 add support for modifying the name of the team
koda
parents: 3325
diff changeset
    23
UIImage *mergeTwoImages (UIImage *firstImage, UIImage *secondImage);
3335
2520ee7a5484 new manager for handling (future) rotations
koda
parents: 3330
diff changeset
    24
BOOL rotationManager (UIInterfaceOrientation interfaceOrientation);