예제 #1
0
        public void NewlyAddedUnits_AppearInHexMap()
        {
            var hex0 = HexDatabase.GetHex(new int2(0, 0));
            var hex1 = HexDatabase.GetHex(new int2(1, 0));
            var hex2 = HexDatabase.GetHex(new int2(2, 0));

            Assert.AreEqual(HexType.Unit, hex0.Type, "Hex0 had incorrect type");
            Assert.AreEqual(HexType.Empty, hex1.Type, "Hex1 had incorrect type");
            Assert.AreEqual(HexType.Unit, hex2.Type, "Hex2 had incorrect type");
        }
예제 #2
0
 public PathfinderDictionary FindAllPaths(int2 cell, HexType typeFlags, int distance)
 {
     return(FindAllPaths(HexDatabase.GetHex(cell), typeFlags, distance));
 }