public ResourceHexPictureBox(Hex hex, World world)
            : this()
        {
            resourceType = hex.getResourceType();
            this.BackColor = hex.getColor();
            this.token = hex.getToken();
            this.world = world;
            this.hex = hex;

            doubleClickTimer.Interval = 100;
            checkDesert();
        }
Пример #2
0
 public void TestThatHexSetsFields()
 {
     var target = new Hex("wool", GRAIN_COLOR);
     Assert.NotNull(target.getResourceType());
     Assert.NotNull(target.getColor());
 }
Пример #3
0
 public void TestHexHasCorrectResourceType()
 {
     var target = new Hex("ore", ORE_COLOR);
     Assert.AreEqual("ore", target.getResourceType());
 }