Esempio n. 1
0
        public void StaticDiagonalDiff()
        {
            CubicHexCoord cubic = CubicHexCoord.DiagonalDiff(DiagonalEnum.ESE);

            Assert.That(cubic.x, Is.EqualTo(1));
            Assert.That(cubic.y, Is.EqualTo(-2));
            Assert.That(cubic.z, Is.EqualTo(1));
        }
Esempio n. 2
0
 public MovementHelper Diagonal(DiagonalEnum direction, params Validator[] validators)
 {
     return(Collect(CubicHexCoord.DiagonalDiff(direction), validators: validators));
 }