cocoaTouch/otherSrc/CommodityFunctions.h
author koda
Thu, 08 Apr 2010 22:45:18 +0000
changeset 3325 652a8ebdf667
child 3330 987ec27b6042
permissions -rw-r--r--
moved around team creation add flags support add forts support need to find another way to save on file

//
//  CommodityFunctions.h
//  HedgewarsMobile
//
//  Created by Vittorio on 08/04/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#define MAX_HOGS 8

#define TEAMS_DIRECTORY()   [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) \
                             objectAtIndex:0] stringByAppendingString:@"/Teams/"]
#define HATS_DIRECTORY()    [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Hats/"]
#define FLAGS_DIRECTORY()   [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Graphics/Flags/"]
#define FORTS_DIRECTORY()   [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/Data/Forts/"]

void createTeamNamed (NSString *nameWithoutExt);