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();
        }
Exemplo n.º 2
0
 public void TestThatHexSetsFields()
 {
     var target = new Hex("wool", GRAIN_COLOR);
     Assert.NotNull(target.getResourceType());
     Assert.NotNull(target.getColor());
 }
Exemplo n.º 3
0
 public void TestHexHasCorrectColor()
 {
     var target = new Hex("lumber", LUMBER_COLOR);
     Assert.AreEqual(LUMBER_COLOR, target.getColor());
 }