Exemplo n.º 1
0
        public void IsTraversable_ContainsMotility_True()
        {
            GridEdge edge = new GridEdge(1f, Motility.Land, Vec2.One, Direction.N);

            Assert.IsTrue(edge.IsTraversable(Motility.Land));
        }
Exemplo n.º 2
0
        public void IsTraversable_DoesNotContainMotility_False()
        {
            GridEdge edge = new GridEdge(1f, Motility.Land, Vec2.One, Direction.N);

            Assert.IsFalse(edge.IsTraversable(Motility.Burrow));
        }
Exemplo n.º 3
0
        public void IsTraversable_UnconstrainedEdge_True()
        {
            GridEdge edge = new GridEdge(1f, Motility.Unconstrained, Vec2.One, Direction.N);

            Assert.IsTrue(edge.IsTraversable(Motility.Land));
        }