eventtest.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  ***************************************************************************/
00009 
00010 
00011 #include "../actions/moveunitcommand.h"
00012 #include "../loaders.h"
00013 #include "../itemrepository.h"
00014 #include "unittestutil.h"
00015 
00016 
00017 void testLoseMap() 
00018 {
00019    auto_ptr<GameMap> game ( startMap("unittest-eventlose.map"));
00020    
00021    Vehicle* veh = game->getField(5,4)->vehicle;
00022    assertOrThrow( veh != NULL );
00023    
00024    attack( veh, MapCoordinate( 6,6 ));
00025    
00026    next_turn( game.get(), NextTurnStrategy_Abort(), NULL, -1 );
00027    
00028    assertOrThrow ( game->actplayer == 2 );
00029    
00030 }
00031 
00032 void testEvents() 
00033 {
00034   //  testLoseMap();
00035 }

Generated on Mon May 21 01:26:32 2012 for Advanced Strategic Command by  doxygen 1.5.1