public ApproachFrom[] collisionType(Positioned other)
    {
        ApproachFrom[] af = new ApproachFrom[2];
        af[0] = ApproachFrom.NONE;
        af[1] = ApproachFrom.NONE;

        if (oldX() + getWidth() <= other.leftBorder())
            af[0] = ApproachFrom.LEFT;
        else if (oldX() >= other.rightBorder())
            af[0] = ApproachFrom.RIGHT;
        
        if (oldY() + getHeight() <= other.topBorder())
            af[1] = ApproachFrom.ABOVE;
        else if (oldY() >= other.bottomBorder())
            af[1] = ApproachFrom.BELOW;
        
        return af;
    }