create teams programmatically
authorkoda
Sat, 08 Oct 2011 22:44:32 +0200
changeset 6104 117bdf4e7af9
parent 6103 55ecfbf834e3
child 6105 29bf0ca70af9
create teams programmatically
project_files/HedgewarsMobile/Classes/CreationChamber.h
project_files/HedgewarsMobile/Classes/CreationChamber.m
project_files/HedgewarsMobile/Classes/FlagsViewController.m
project_files/HedgewarsMobile/Classes/MainMenuViewController.m
project_files/HedgewarsMobile/Classes/SingleTeamViewController.m
project_files/HedgewarsMobile/Resources/Settings/Teams/Ninjas.plist
project_files/HedgewarsMobile/Resources/Settings/Teams/Pirates.plist
project_files/HedgewarsMobile/Resources/Settings/Teams/Robots.plist
--- a/project_files/HedgewarsMobile/Classes/CreationChamber.h	Sat Oct 08 21:17:24 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/CreationChamber.h	Sat Oct 08 22:44:32 2011 +0200
@@ -29,7 +29,7 @@
 
 +(void) createTeamNamed:(NSString *)nameWithoutExt;
 +(void) createTeamNamed:(NSString *)nameWithoutExt ofType:(NSInteger) type;
-+(void) createTeamNamed:(NSString *)nameWithoutExt ofType:(NSInteger) type controlledByAI:(BOOL) flag;
++(void) createTeamNamed:(NSString *)nameWithoutExt ofType:(NSInteger) type controlledByAI:(BOOL) shouldAITakeOver;
 
 +(void) createWeaponNamed:(NSString *)nameWithoutExt;
 +(void) createWeaponNamed:(NSString *)nameWithoutExt ofType:(NSInteger) type;
--- a/project_files/HedgewarsMobile/Classes/CreationChamber.m	Sat Oct 08 21:17:24 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/CreationChamber.m	Sat Oct 08 22:44:32 2011 +0200
@@ -52,7 +52,7 @@
     [CreationChamber createTeamNamed:nameWithoutExt ofType:type controlledByAI:NO];
 }
 
-+(void) createTeamNamed:(NSString *)nameWithoutExt ofType:(NSInteger) type controlledByAI:(BOOL) flag {
++(void) createTeamNamed:(NSString *)nameWithoutExt ofType:(NSInteger) type controlledByAI:(BOOL) shouldAITakeOver {
     NSString *teamsDirectory = TEAMS_DIRECTORY();
 
     if (![[NSFileManager defaultManager] fileExistsAtPath: teamsDirectory]) {
@@ -62,26 +62,68 @@
                                                         error:NULL];
     }
 
-    NSMutableArray *hedgehogs = [[NSMutableArray alloc] initWithCapacity: HW_getMaxNumberOfHogs()];
+    NSArray *customNames;
+    NSArray *customHats;
+    NSString *flag, *grave, *voicepack, *fort;
+    switch (type) {
+        default: // default
+            customNames = [[NSArray alloc] initWithObjects:@"No Name",@"Unnamed",@"Anonymous",@"Nameless",@"Incognito",@"Unidentified",
+                           @"Uknown",@"Secret",nil];
+            customHats = [[NSArray alloc] initWithObjects:@"NoHat",@"NoHat",@"NoHat",@"NoHat",@"NoHat",@"NoHat",@"NoHat",@"NoHat",nil];
+            flag = @"hedgewars";
+            grave = @"Statue";
+            voicepack = @"Default";
+            fort = @"Plane";
+            break;
+        case 1:  // ninjas
+            customNames = [[NSArray alloc] initWithObjects:@"Shinobi",@"Ukemi",@"Godai",@"Ninpo",@"Tatsujin",@"Arashi",@"Bushi",@"Itami",nil];
+            customHats = [[NSArray alloc] initWithObjects:@"NinjaFull",@"NinjaStraight",@"NinjaTriangle",@"NinjaFull",@"NinjaStraight",
+                          @"NinjaTriangle",@"NinjaFull",@"NinjaTriangle",nil];
+            flag = @"japan";
+            grave = @"bp2";
+            voicepack = @"Singer";
+            fort = @"Wood";
+            break;
+        case 2: // pirates
+            customNames = [[NSArray alloc] initWithObjects:@"Toothless Wayne",@"Long-nose Kidd",@"Eye-patch Jim",@"Rackham Blood",@"One-eyed Ayee",
+                           @"Dirty Ben",@"Morris",@"Cruise Seymour",nil];
+            customHats = [[NSArray alloc] initWithObjects:@"pirate_jack_bandana",@"pirate_jack",@"dwarf",@"pirate_jack_bandana",@"pirate_jack",
+                          @"dwarf",@"pirate_jack_bandana",@"pirate_jack",nil];
+            flag = @"cm_pirate";
+            grave = @"chest";
+            voicepack = @"Pirate";
+            fort = @"Hydrant";
+            break;
+        case 3: // robots
+            customNames = [[NSArray alloc] initWithObjects:@"HAL",@"R2-D2",@"Wall-E",@"Robocop",@"Optimus Prime",@"Terminator",@"C-3PO",@"KITT",nil];
+            customHats = [[NSArray alloc] initWithObjects:@"cyborg1",@"cyborg2",@"cyborg1",@"cyborg2",@"cyborg1",@"cyborg2",@"cyborg1",
+                          @"cyborg2",nil];
+            flag = @"cm_binary";
+            grave = @"Rip";
+            voicepack = @"Robot";
+            fort = @"UFO";
+            break;
+    }
 
+    NSMutableArray *hedgehogs = [[NSMutableArray alloc] initWithCapacity:HW_getMaxNumberOfHogs()];
     for (int i = 0; i < HW_getMaxNumberOfHogs(); i++) {
-        NSString *hogName = [[NSString alloc] initWithFormat:@"hedgehog %d",i];
         NSDictionary *hog = [[NSDictionary alloc] initWithObjectsAndKeys:
-                             [NSNumber numberWithInt:0],@"level",
-                             hogName,@"hogname",
-                             @"NoHat",@"hat",
+                             [NSNumber numberWithInt:(shouldAITakeOver ? 4 : 0)],@"level",
+                             [customNames objectAtIndex:i],@"hogname",
+                             [customHats objectAtIndex:i],@"hat",
                              nil];
-        [hogName release];
         [hedgehogs addObject:hog];
         [hog release];
     }
+    [customHats release];
+    [customNames release];
 
     NSDictionary *theTeam = [[NSDictionary alloc] initWithObjectsAndKeys:
                              @"0",@"hash",
-                             @"Statue",@"grave",
-                             @"Plane",@"fort",
-                             @"Default",@"voicepack",
-                             @"hedgewars",@"flag",
+                             grave,@"grave",
+                             fort,@"fort",
+                             voicepack,@"voicepack",
+                             flag,@"flag",
                              hedgehogs,@"hedgehogs",
                              nil];
     [hedgehogs release];
@@ -117,37 +159,37 @@
             delay = [[NSString alloc] initWithBytes:AMMOLINE_DEFAULT_DELAY length:ammolineSize encoding:NSUTF8StringEncoding];
             crate = [[NSString alloc] initWithBytes:AMMOLINE_DEFAULT_CRATE length:ammolineSize encoding:NSUTF8StringEncoding];
             break;
-        case 1: //crazy
+        case 1:  //crazy
             qt = [[NSString alloc] initWithBytes:AMMOLINE_CRAZY_QT length:ammolineSize encoding:NSUTF8StringEncoding];
             prob = [[NSString alloc] initWithBytes:AMMOLINE_CRAZY_PROB length:ammolineSize encoding:NSUTF8StringEncoding];
             delay = [[NSString alloc] initWithBytes:AMMOLINE_CRAZY_DELAY length:ammolineSize encoding:NSUTF8StringEncoding];
             crate = [[NSString alloc] initWithBytes:AMMOLINE_CRAZY_CRATE length:ammolineSize encoding:NSUTF8StringEncoding];
             break;
-        case 2: //pro mode
+        case 2:  //pro mode
             qt = [[NSString alloc] initWithBytes:AMMOLINE_PROMODE_QT length:ammolineSize encoding:NSUTF8StringEncoding];
             prob = [[NSString alloc] initWithBytes:AMMOLINE_PROMODE_PROB length:ammolineSize encoding:NSUTF8StringEncoding];
             delay = [[NSString alloc] initWithBytes:AMMOLINE_PROMODE_DELAY length:ammolineSize encoding:NSUTF8StringEncoding];
             crate = [[NSString alloc] initWithBytes:AMMOLINE_PROMODE_CRATE length:ammolineSize encoding:NSUTF8StringEncoding];
             break;
-        case 3: //shoppa
+        case 3:  //shoppa
             qt = [[NSString alloc] initWithBytes:AMMOLINE_SHOPPA_QT length:ammolineSize encoding:NSUTF8StringEncoding];
             prob = [[NSString alloc] initWithBytes:AMMOLINE_SHOPPA_PROB length:ammolineSize encoding:NSUTF8StringEncoding];
             delay = [[NSString alloc] initWithBytes:AMMOLINE_SHOPPA_DELAY length:ammolineSize encoding:NSUTF8StringEncoding];
             crate = [[NSString alloc] initWithBytes:AMMOLINE_SHOPPA_CRATE length:ammolineSize encoding:NSUTF8StringEncoding];
             break;
-        case 4: //clean slate
+        case 4:  //clean slate
             qt = [[NSString alloc] initWithBytes:AMMOLINE_CLEAN_QT length:ammolineSize encoding:NSUTF8StringEncoding];
             prob = [[NSString alloc] initWithBytes:AMMOLINE_CLEAN_PROB length:ammolineSize encoding:NSUTF8StringEncoding];
             delay = [[NSString alloc] initWithBytes:AMMOLINE_CLEAN_DELAY length:ammolineSize encoding:NSUTF8StringEncoding];
             crate = [[NSString alloc] initWithBytes:AMMOLINE_CLEAN_CRATE length:ammolineSize encoding:NSUTF8StringEncoding];
             break;
-        case 5: //minefield
+        case 5:  //minefield
             qt = [[NSString alloc] initWithBytes:AMMOLINE_MINES_QT length:ammolineSize encoding:NSUTF8StringEncoding];
             prob = [[NSString alloc] initWithBytes:AMMOLINE_MINES_PROB length:ammolineSize encoding:NSUTF8StringEncoding];
             delay = [[NSString alloc] initWithBytes:AMMOLINE_MINES_DELAY length:ammolineSize encoding:NSUTF8StringEncoding];
             crate = [[NSString alloc] initWithBytes:AMMOLINE_MINES_CRATE length:ammolineSize encoding:NSUTF8StringEncoding];
             break;
-        case 6: //thinking with portals
+        case 6:  //thinking with portals
             qt = [[NSString alloc] initWithBytes:AMMOLINE_PORTALS_QT length:ammolineSize encoding:NSUTF8StringEncoding];
             prob = [[NSString alloc] initWithBytes:AMMOLINE_PORTALS_PROB length:ammolineSize encoding:NSUTF8StringEncoding];
             delay = [[NSString alloc] initWithBytes:AMMOLINE_PORTALS_DELAY length:ammolineSize encoding:NSUTF8StringEncoding];
@@ -197,17 +239,17 @@
     [mods release];
 
     switch (type) {
-        case 0: // default
+        default: // default
             [gamemodArray replaceObjectAtIndex:11 withObject:[NSNumber numberWithBool:YES]];
             break;
-        case 1: // pro mode
+        case 1:  // pro mode
             [basicArray replaceObjectAtIndex:2 withObject:[NSNumber numberWithInt:15]];
             [basicArray replaceObjectAtIndex:7 withObject:[NSNumber numberWithInt:0]];
             [basicArray replaceObjectAtIndex:11 withObject:[NSNumber numberWithInt:0]];
             [gamemodArray replaceObjectAtIndex:11 withObject:[NSNumber numberWithBool:YES]];
             [gamemodArray replaceObjectAtIndex:14 withObject:[NSNumber numberWithBool:YES]];
             break;
-        case 2: // shoppa
+        case 2:  // shoppa
             [basicArray replaceObjectAtIndex:2 withObject:[NSNumber numberWithInt:30]];
             [basicArray replaceObjectAtIndex:3 withObject:[NSNumber numberWithInt:50]];
             [basicArray replaceObjectAtIndex:7 withObject:[NSNumber numberWithInt:1]];
@@ -222,13 +264,13 @@
             [gamemodArray replaceObjectAtIndex:15 withObject:[NSNumber numberWithBool:YES]];
             [gamemodArray replaceObjectAtIndex:19 withObject:[NSNumber numberWithBool:YES]];
             break;
-        case 3: // clean slate
+        case 3:  // clean slate
             [gamemodArray replaceObjectAtIndex:6 withObject:[NSNumber numberWithBool:YES]];
             [gamemodArray replaceObjectAtIndex:11 withObject:[NSNumber numberWithBool:YES]];
             [gamemodArray replaceObjectAtIndex:18 withObject:[NSNumber numberWithBool:YES]];
             [gamemodArray replaceObjectAtIndex:19 withObject:[NSNumber numberWithBool:YES]];
             break;
-        case 4: // minefield
+        case 4:  // minefield
             [basicArray replaceObjectAtIndex:0 withObject:[NSNumber numberWithInt:50]];
             [basicArray replaceObjectAtIndex:2 withObject:[NSNumber numberWithInt:30]];
             [basicArray replaceObjectAtIndex:7 withObject:[NSNumber numberWithInt:0]];
@@ -239,7 +281,7 @@
             [gamemodArray replaceObjectAtIndex:14 withObject:[NSNumber numberWithBool:YES]];
             [gamemodArray replaceObjectAtIndex:15 withObject:[NSNumber numberWithBool:YES]];
             break;
-        case 5: // barrel mayhem
+        case 5:  // barrel mayhem
             [basicArray replaceObjectAtIndex:2 withObject:[NSNumber numberWithInt:30]];
             [basicArray replaceObjectAtIndex:7 withObject:[NSNumber numberWithInt:0]];
             [basicArray replaceObjectAtIndex:10 withObject:[NSNumber numberWithInt:0]];
@@ -248,7 +290,7 @@
             [gamemodArray replaceObjectAtIndex:11 withObject:[NSNumber numberWithBool:YES]];
             [gamemodArray replaceObjectAtIndex:14 withObject:[NSNumber numberWithBool:YES]];
             break;
-        case 6: // tunnel hogs
+        case 6:  // tunnel hogs
             [basicArray replaceObjectAtIndex:2 withObject:[NSNumber numberWithInt:30]];
             [basicArray replaceObjectAtIndex:9 withObject:[NSNumber numberWithInt:3]];
             [basicArray replaceObjectAtIndex:11 withObject:[NSNumber numberWithInt:10]];
@@ -260,7 +302,7 @@
             [gamemodArray replaceObjectAtIndex:15 withObject:[NSNumber numberWithBool:YES]];
             [gamemodArray replaceObjectAtIndex:16 withObject:[NSNumber numberWithBool:YES]];
             break;
-        case 7: // fort mode
+        case 7:  // fort mode
             [basicArray replaceObjectAtIndex:11 withObject:[NSNumber numberWithInt:0]];
             [basicArray replaceObjectAtIndex:13 withObject:[NSNumber numberWithInt:0]];
             [gamemodArray replaceObjectAtIndex:2 withObject:[NSNumber numberWithBool:YES]];
@@ -268,7 +310,7 @@
             [gamemodArray replaceObjectAtIndex:10 withObject:[NSNumber numberWithBool:YES]];
             [gamemodArray replaceObjectAtIndex:11 withObject:[NSNumber numberWithBool:YES]];
             break;
-        case 8: // timeless
+        case 8:  // timeless
             [basicArray replaceObjectAtIndex:2 withObject:[NSNumber numberWithInt:100]];
             [basicArray replaceObjectAtIndex:4 withObject:[NSNumber numberWithInt:0]];
             [basicArray replaceObjectAtIndex:5 withObject:[NSNumber numberWithInt:0]];
@@ -279,7 +321,7 @@
             [gamemodArray replaceObjectAtIndex:11 withObject:[NSNumber numberWithBool:YES]];
             [gamemodArray replaceObjectAtIndex:20 withObject:[NSNumber numberWithBool:YES]];
             break;
-        case 9: // thinking with portals
+        case 9:  // thinking with portals
             [basicArray replaceObjectAtIndex:7 withObject:[NSNumber numberWithInt:2]];
             [basicArray replaceObjectAtIndex:8 withObject:[NSNumber numberWithInt:25]];
             [basicArray replaceObjectAtIndex:10 withObject:[NSNumber numberWithInt:4]];
@@ -288,13 +330,10 @@
             [gamemodArray replaceObjectAtIndex:9 withObject:[NSNumber numberWithBool:YES]];
             [gamemodArray replaceObjectAtIndex:11 withObject:[NSNumber numberWithBool:YES]];
             break;
-        case 10:// king mode
+        case 10: // king mode
             [gamemodArray replaceObjectAtIndex:11 withObject:[NSNumber numberWithBool:YES]];
             [gamemodArray replaceObjectAtIndex:12 withObject:[NSNumber numberWithBool:YES]];
             break;
-        default:
-            DLog(@"Impossible");
-            break;
     }
 
     NSMutableDictionary *theScheme = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
--- a/project_files/HedgewarsMobile/Classes/FlagsViewController.m	Sat Oct 08 21:17:24 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/FlagsViewController.m	Sat Oct 08 22:44:32 2011 +0200
@@ -100,8 +100,9 @@
     UIImage *flagSprite = [[UIImage alloc] initWithContentsOfFile:flagFile];
     [flagFile release];
     cell.imageView.image = flagSprite;
-    cell.imageView.layer.borderWidth = 0.3;
     [flagSprite release];
+    cell.imageView.layer.borderWidth = 1;
+    cell.imageView.layer.borderColor = [[UIColor blackColor] CGColor];
 
     cell.textLabel.text = [[source objectAtIndex:row] stringByDeletingPathExtension];
     if ([[flagName stringByDeletingPathExtension] isEqualToString:[self.teamDictionary objectForKey:@"flag"]]) {
--- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sat Oct 08 21:17:24 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sat Oct 08 22:44:32 2011 +0200
@@ -42,46 +42,39 @@
 
 // check if some configuration files are already set; if they are present it means that the current copy must be updated
 -(void) createNecessaryFiles {
-    NSString *resourcesDir = [[NSBundle mainBundle] resourcePath];
     DLog(@"Creating necessary files");
+    NSInteger index;
     
     // SAVES - just delete and overwrite
     if ([[NSFileManager defaultManager] fileExistsAtPath:SAVES_DIRECTORY()])
         [[NSFileManager defaultManager] removeItemAtPath:SAVES_DIRECTORY() error:NULL];
-    [[NSFileManager defaultManager] createDirectoryAtPath:SAVES_DIRECTORY() withIntermediateDirectories:NO attributes:nil error:NULL];
+    [[NSFileManager defaultManager] createDirectoryAtPath:SAVES_DIRECTORY()
+                              withIntermediateDirectories:NO
+                                               attributes:nil
+                                                    error:NULL];
     
     // SETTINGS - nsuserdefaults ftw
     [CreationChamber createSettings];
 
     // TEAMS - update exisiting teams with new format
-    if ([[NSFileManager defaultManager] fileExistsAtPath:TEAMS_DIRECTORY()] == NO) {
-        [[NSFileManager defaultManager] createDirectoryAtPath:TEAMS_DIRECTORY()
-                                  withIntermediateDirectories:YES
-                                                   attributes:nil
-                                                        error:NULL];
-        // we copy teams only the first time because it's unlikely that newer ones are going to be added
-        NSString *baseTeamsDir = [[NSString alloc] initWithFormat:@"%@/Settings/Teams/",resourcesDir];
-        for (NSString *str in [[NSFileManager defaultManager] contentsOfDirectoryAtPath:baseTeamsDir error:NULL]) {
-            NSString *sourceFile = [baseTeamsDir stringByAppendingString:str];
-            NSString *destinationFile = [TEAMS_DIRECTORY() stringByAppendingString:str];
-            [[NSFileManager defaultManager] removeItemAtPath:destinationFile error:NULL];
-            [[NSFileManager defaultManager] copyItemAtPath:sourceFile toPath:destinationFile error:NULL];
-        }
-        [baseTeamsDir release];
-    }
-    // merge not needed as format rarely changes
+    NSArray *teamNames = [[NSArray alloc] initWithObjects:@"Edit Me!",@"Ninjas",@"Pirates",@"Robots",nil];
+    index = 0;
+    for (NSString *name in teamNames)
+        [CreationChamber createTeamNamed:name ofType:index++ controlledByAI:[name isEqualToString:@"Robots"]];
+    [teamNames release];
 
     // SCHEMES - always overwrite and delete custom ones
     if ([[NSFileManager defaultManager] fileExistsAtPath:SCHEMES_DIRECTORY()] == YES)
         [[NSFileManager defaultManager] removeItemAtPath:SCHEMES_DIRECTORY() error:NULL];
-    NSArray *schemeNames = [[NSArray alloc] initWithObjects:@"Default",@"Pro Mode",@"Shoppa",@"Clean Slate",@"Minefield",
-                            @"Barrel Mayhem",@"Tunnel Hogs",@"Fort Mode",@"Timeless",@"Thinking with Portals",@"King Mode",nil];
-    NSInteger index = 0;
+    NSArray *schemeNames = [[NSArray alloc] initWithObjects:@"Default",@"Pro Mode",@"Shoppa",@"Clean Slate",
+                            @"Minefield",@"Barrel Mayhem",@"Tunnel Hogs",@"Fort Mode",@"Timeless",
+                            @"Thinking with Portals",@"King Mode",nil];
+    index = 0;
     for (NSString *name in schemeNames)
         [CreationChamber createSchemeNamed:name ofType:index++];
     [schemeNames release];
 
-    // WEAPONS - always overwrite as merge is not needed (missing weaps the set are 0ed automatically)
+    // WEAPONS - always overwrite as merge is not needed (missing weaps are 0ed automatically)
     NSArray *weaponNames = [[NSArray alloc] initWithObjects:@"Default",@"Crazy",@"Pro Mode",@"Shoppa",@"Clean Slate",
                             @"Minefield",@"Thinking with Portals",nil];
     index = 0;
--- a/project_files/HedgewarsMobile/Classes/SingleTeamViewController.m	Sat Oct 08 21:17:24 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/SingleTeamViewController.m	Sat Oct 08 22:44:32 2011 +0200
@@ -262,8 +262,9 @@
                     accessoryImage = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@.png",
                                                                               FLAGS_DIRECTORY(),[teamDictionary objectForKey:@"flag"]]];
                     cell.imageView.image = [accessoryImage scaleToSize:CGSizeMake(26, 18)];
-                    cell.imageView.layer.borderWidth = 0.3;
                     [accessoryImage release];
+                    cell.imageView.layer.borderWidth = 1;
+                    cell.imageView.layer.borderColor = [[UIColor blackColor] CGColor];
                     break;
                 case 4: // level
                     accessoryImage = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/bot%d.png",
--- a/project_files/HedgewarsMobile/Resources/Settings/Teams/Ninjas.plist	Sat Oct 08 21:17:24 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>flag</key>
-	<string>japan</string>
-	<key>fort</key>
-	<string>Plane</string>
-	<key>grave</key>
-	<string>bp2</string>
-	<key>hash</key>
-	<string>0</string>
-	<key>hedgehogs</key>
-	<array>
-		<dict>
-			<key>hat</key>
-			<string>NinjaFull</string>
-			<key>hogname</key>
-			<string>Ukemi</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>NinjaStraight</string>
-			<key>hogname</key>
-			<string>Godai</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>NinjaTriangle</string>
-			<key>hogname</key>
-			<string>Ninpo</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>NinjaStraight</string>
-			<key>hogname</key>
-			<string>Shinobi</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>NinjaFull</string>
-			<key>hogname</key>
-			<string>Tatsujin</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>NinjaTriangle</string>
-			<key>hogname</key>
-			<string>Arashi</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>NinjaStraight</string>
-			<key>hogname</key>
-			<string>Bushi</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>NinjaFull</string>
-			<key>hogname</key>
-			<string>Itami</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-	</array>
-	<key>voicepack</key>
-	<string>Default</string>
-</dict>
-</plist>
--- a/project_files/HedgewarsMobile/Resources/Settings/Teams/Pirates.plist	Sat Oct 08 21:17:24 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>flag</key>
-	<string>cm_pirate</string>
-	<key>fort</key>
-	<string>Plane</string>
-	<key>grave</key>
-	<string>chest</string>
-	<key>hash</key>
-	<string>0</string>
-	<key>hedgehogs</key>
-	<array>
-		<dict>
-			<key>hat</key>
-			<string>pirate_jack_bandana</string>
-			<key>hogname</key>
-			<string>Toothless Wayne</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>pirate_jack</string>
-			<key>hogname</key>
-			<string>Long-nose Kidd</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>dwarf</string>
-			<key>hogname</key>
-			<string>Eye-patch Jim</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>pirate_jack</string>
-			<key>hogname</key>
-			<string>Rackham Blood</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>dwarf</string>
-			<key>hogname</key>
-			<string>One-eyed Ayee</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>pirate_jack_bandana</string>
-			<key>hogname</key>
-			<string>Dirty Ben</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>pirate_jack</string>
-			<key>hogname</key>
-			<string>Morris</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>dwarf</string>
-			<key>hogname</key>
-			<string>Cruise Seymour</string>
-			<key>level</key>
-			<integer>0</integer>
-		</dict>
-	</array>
-	<key>voicepack</key>
-	<string>Pirate</string>
-</dict>
-</plist>
--- a/project_files/HedgewarsMobile/Resources/Settings/Teams/Robots.plist	Sat Oct 08 21:17:24 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>flag</key>
-	<string>cm_binary</string>
-	<key>fort</key>
-	<string>UFO</string>
-	<key>grave</key>
-	<string>Rip</string>
-	<key>hash</key>
-	<string>0</string>
-	<key>hedgehogs</key>
-	<array>
-		<dict>
-			<key>hat</key>
-			<string>cyborg1</string>
-			<key>hogname</key>
-			<string>HAL</string>
-			<key>level</key>
-			<integer>4</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>cyborg2</string>
-			<key>hogname</key>
-			<string>R2-D2</string>
-			<key>level</key>
-			<integer>4</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>cyborg1</string>
-			<key>hogname</key>
-			<string>Wall-E</string>
-			<key>level</key>
-			<integer>4</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>cyborg2</string>
-			<key>hogname</key>
-			<string>Robocob</string>
-			<key>level</key>
-			<integer>4</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>cyborg1</string>
-			<key>hogname</key>
-			<string>Optimus Prime</string>
-			<key>level</key>
-			<integer>4</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>cyborg2</string>
-			<key>hogname</key>
-			<string>Terminator</string>
-			<key>level</key>
-			<integer>4</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>cyborg1</string>
-			<key>hogname</key>
-			<string>C-3PO</string>
-			<key>level</key>
-			<integer>4</integer>
-		</dict>
-		<dict>
-			<key>hat</key>
-			<string>cyborg2</string>
-			<key>hogname</key>
-			<string>KITT</string>
-			<key>level</key>
-			<integer>4</integer>
-		</dict>
-	</array>
-	<key>voicepack</key>
-	<string>Robot</string>
-</dict>
-</plist>