public Vector3Int GetNextHeadPosition() { InteractiveElement head = GetSnakesHead(); SnakesDirection = NextDirection; return(SnakesDirectionHelper.NextHeadPosition(SnakesDirection, head.position)); }
public bool IsAvailableDirection(Direction nextDirection) { Snake snake = SnakeApplication.GetInstance().model.snake; return(SnakesDirectionHelper.IsAvailableDirection(snake.GetCurrentDirection(), nextDirection)); }
bool IsVerticalMovement() { return(SnakesDirectionHelper.IsVerticalMovement(GetCurrentDirection())); }
bool IsHorizontalMovement() { return(SnakesDirectionHelper.IsHorizontalMovement(GetCurrentDirection())); }