cocoaTouch/GameSetup.m
changeset 3490 016b3172b645
parent 3487 b1d00f1950c8
child 3495 a6b4f351d400
equal deleted inserted replaced
3489:aedf289192f5 3490:016b3172b645
   290 				
   290 				
   291 				// seed info
   291 				// seed info
   292 				[self sendToEngine:[self.gameConfig objectForKey:@"seed_command"]];
   292 				[self sendToEngine:[self.gameConfig objectForKey:@"seed_command"]];
   293 				
   293 				
   294                 // scheme (returns initial health)
   294                 // scheme (returns initial health)
   295                 NSInteger health = [self provideScheme:@"testing"];
   295                 NSInteger health = [self provideScheme:@"Scheme 0"];
   296 
   296 
   297 				// dimension of the map
   297 				// dimension of the map
   298 				[self sendToEngine:[self.gameConfig objectForKey:@"templatefilter_command"]];
   298 				[self sendToEngine:[self.gameConfig objectForKey:@"templatefilter_command"]];
   299 				[self sendToEngine:[self.gameConfig objectForKey:@"mapgen_command"]];
   299 				[self sendToEngine:[self.gameConfig objectForKey:@"mapgen_command"]];
   300 				[self sendToEngine:[self.gameConfig objectForKey:@"mazesize_command"]];
   300 				[self sendToEngine:[self.gameConfig objectForKey:@"mazesize_command"]];
   382 	SDLNet_Quit();
   382 	SDLNet_Quit();
   383 
   383 
   384     [[NSFileManager defaultManager] removeItemAtPath:GAMECONFIG_FILE() error:NULL];
   384     [[NSFileManager defaultManager] removeItemAtPath:GAMECONFIG_FILE() error:NULL];
   385     
   385     
   386 	[pool release];
   386 	[pool release];
   387 	[NSThread exit];
   387     //Invoking this method should be avoided as it does not give your thread a chance to clean up any resources it allocated during its execution.
       
   388     //[NSThread exit];
   388 }
   389 }
   389 
   390 
   390 #pragma mark -
   391 #pragma mark -
   391 #pragma mark Setting methods
   392 #pragma mark Setting methods
   392 // returns an array of c-strings that are read by engine at startup
   393 // returns an array of c-strings that are read by engine at startup