Ejemplo 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));
        }
Ejemplo 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));
        }
Ejemplo 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));
        }