public TundraTile(Coordinate position) { _painter = new TundraTilePainter(); _name = MainStrings.TundraTileName; _properties = new TileProperties(0, 30, position, -20); _effects = new TilePropertiesForEffects(); }
public JungleTile(Coordinate position) { _painter = new JungleTilePainter(); _name = MainStrings.JungleTileName; _properties = new TileProperties(85, 20, position, 27); _effects = new TilePropertiesForEffects(); }
public DesertTile(Coordinate position) { _painter = new DesertTilePainter(); _name = MainStrings.DesertTileName; _properties = new TileProperties(0, 50, position, 40); _effects = new TilePropertiesForEffects(); }
public ForestTile(Coordinate position) { _painter = new ForestTilePainter(); _name = MainStrings.ForestTileName; _properties = new TileProperties(75, 25, position, 20); _effects = new TilePropertiesForEffects(); }
public PlainTile(Coordinate position) { _painter = new PlainTilePainter(); _name = MainStrings.PlainTileName; _properties = new TileProperties(40, 80, position, 28); _effects = new TilePropertiesForEffects(); }
public WaterTile(Coordinate position) { _painter = new WaterTilePainter(); _name = MainStrings.WaterTileName; _properties = new TileProperties(100, 100, position, 17); _effects = new TilePropertiesForEffects(); }
public MountainsTile(Coordinate position) { _painter = new MountainsTilePainter(); _name = MainStrings.MountainsTileName; _properties = new TileProperties(10, 50, position, 5); _effects = new TilePropertiesForEffects(); }
public void CopyTest() { Coordinate a = new Coordinate(10, 10); Coordinate b = new Coordinate(a); a.X = 0; Assert.AreNotEqual(a.X,b.X); IIntrinsicTileProperties i = new TileProperties(1, 2, new Coordinate(3, 4), 5); IIntrinsicTileProperties k = new TileProperties(i); Assert.AreEqual(i.Humidity, k.Humidity); Assert.AreEqual(i.Position, k.Position); k.Humidity = 10; k.Position = new Coordinate(1, 2); Assert.AreNotEqual(i.Humidity, k.Humidity); Assert.AreNotEqual(i.Position, k.Position); }