コード例 #1
0
        public void IsTraversable_ContainsMotility_True()
        {
            GridEdge edge = new GridEdge(1f, Motility.Land, Vec2.One, Direction.N);

            Assert.IsTrue(edge.IsTraversable(Motility.Land));
        }
コード例 #2
0
        public void IsTraversable_DoesNotContainMotility_False()
        {
            GridEdge edge = new GridEdge(1f, Motility.Land, Vec2.One, Direction.N);

            Assert.IsFalse(edge.IsTraversable(Motility.Burrow));
        }
コード例 #3
0
        public void IsTraversable_UnconstrainedEdge_True()
        {
            GridEdge edge = new GridEdge(1f, Motility.Unconstrained, Vec2.One, Direction.N);

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