project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 6719 d2afc6b2d88e
parent 6700 e04da46ee43c
child 6822 206db098f8c5
equal deleted inserted replaced
6718:686ebfd50f56 6719:d2afc6b2d88e
    27 #import "SavedGamesViewController.h"
    27 #import "SavedGamesViewController.h"
    28 #import "RestoreViewController.h"
    28 #import "RestoreViewController.h"
    29 #import "MissionTrainingViewController.h"
    29 #import "MissionTrainingViewController.h"
    30 #import "Appirater.h"
    30 #import "Appirater.h"
    31 #import "ServerProtocolNetwork.h"
    31 #import "ServerProtocolNetwork.h"
       
    32 #import "GameInterfaceBridge.h"
    32 
    33 
    33 
    34 
    34 @implementation MainMenuViewController
    35 @implementation MainMenuViewController
    35 @synthesize gameConfigViewController, settingsViewController, aboutViewController, savedGamesViewController,
    36 @synthesize gameConfigViewController, settingsViewController, aboutViewController, savedGamesViewController,
    36             restoreViewController, missionsViewController;
    37             restoreViewController, missionsViewController;
   219                 self.missionsViewController = missions;
   220                 self.missionsViewController = missions;
   220                 [missions release];
   221                 [missions release];
   221             }
   222             }
   222             [self presentModalViewController:self.missionsViewController animated:YES];
   223             [self presentModalViewController:self.missionsViewController animated:YES];
   223             break;
   224             break;
       
   225         case 6:
       
   226             [GameInterfaceBridge registerCallingController:self];
       
   227             [GameInterfaceBridge startSimpleGame];
       
   228             break;
   224         default:
   229         default:
   225             alert = [[UIAlertView alloc] initWithTitle:@"Not Yet Implemented"
   230             alert = [[UIAlertView alloc] initWithTitle:@"Not Yet Implemented"
   226                                                message:@"Sorry, this feature is not yet implemented"
   231                                                message:@"Sorry, this feature is not yet implemented"
   227                                               delegate:nil
   232                                               delegate:nil
   228                                      cancelButtonTitle:@"Well, don't worry"
   233                                      cancelButtonTitle:@"Well, don't worry"