예제 #1
0
        public void MapModCreationTest()
        {
            List <MapMod> mpList = MapMod.getMapModList();
            MapMod        mp     = new MapMod("camp");

            Assert.AreEqual(mp.getMapModType(), MapMods.camp);
            MapMod ms = new MapMod("circle");

            Assert.AreEqual(ms.getMapModType(), MapMods.circle);
            Assert.AreEqual(mpList.Count, 2);
        }
예제 #2
0
 public MapModPin(MapMod mapMod, AdditionalInfoPage aiSection, double width, double height)
     : base(mapMod, aiSection, aiSection.ActualWidth, aiSection.ActualHeight)
 {
     base.setImage(TechnicalServices.getImage(mapMod.getMapModType())); //Setting the image of the map modification pin
     mapModification = mapMod;                                          //Providing a link to the map that this pin represents
 }