GameObj.java
/**
     * Determine whether this game object will intersect another in the next time step, assuming
     * that both objects continue with their current velocity.
     * 
     * Intersection is determined by comparing bounding boxes. If the  bounding boxes (for the next
     * time step) overlap, then an intersection is considered to occur.
     * 
     * @param that The other object
     * @return Whether an intersection will occur.
     */
Determine whether this game object will intersect another in the next time step, assuming
that both objects continue with their current velocity.

Intersection is determined by comparing bounding boxes. If the  bounding boxes (for the next
time step) overlap, then an intersection is considered to occur.

@param that The other object
@return Whether an intersection will occur.
Determine whether this game object will intersect another in the next time step assuming that both objects continue with their current velocity . Intersection is determined by comparing bounding boxes . If the bounding boxes ( for the next time step ) overlap then an intersection is considered to occur . @param that The other object @return Whether an intersection will occur .
public boolean willIntersect(GameObj that) {
        int thisNextX = this.px + this.vx;
        int thisNextY = this.py + this.vy;
        int thatNextX = that.px + that.vx;
        int thatNextY = that.py + that.vy;
        return (thisNextX + this.width >= thatNextX
            && thisNextY + this.height >= thatNextY
            && thatNextX + that.width >= thisNextX 
            && thatNextY + that.height >= thisNextY);
    }
public boolean willIntersect ( GameObj that ) { int thisNextX = this . px + this . vx ; int thisNextY = this . py + this . vy ; int thatNextX = that . px + that . vx ; int thatNextY = that . py + that . vy ; return ( thisNextX + this . width >= thatNextX && thisNextY + this . height >= thatNextY && thatNextX + that . width >= thisNextX && thatNextY + that . height >= thisNextY ) ; }
Determine whether this game object will intersect another in the next time step, assuming
 that both objects continue with their current velocity.
Determine whether this game object will intersect another in the next time step assuming that both objects continue with their current velocity .