예제 #1
0
        public void TerrainNoBlockedOnGrassForUnit()
        {
            var terrainCell = new TerrainCell(0, 0, 0, 0);

            Assert.False(terrainCell.Blocked(0));
        }
예제 #2
0
        public void TerrainBlockedOnForrestForTank()
        {
            var terrainCell = new TerrainCell(0, 0, 0, 50);

            Assert.True(terrainCell.Blocked(1));
        }
예제 #3
0
        public void TerrainBlockedOnWaterForTank()
        {
            var terrainCell = new TerrainCell(0, 0, 0, 20);

            Assert.True(terrainCell.Blocked(1));
        }