src/jtwod/engine/drawable/Shape.java
public final boolean isCollidingWith(Shape<ParentEngine> shape)
    {
        Rectangle r = new Rectangle();
        r.setBounds(this.position.getX(), this.position.getY(), this.getSize().getWidth(), this.getSize().getHeight());

        Rectangle r2 = new Rectangle();
        r2.setBounds(shape.getPosition().getX(), shape.getPosition().getY(), shape.getSize().getWidth(), shape.getSize().getHeight());

        return (r.intersects(r2));
    }
/**
     * Check if this Shape is colliding with another.
     *
     * @param shape The other Shape that we want to see if this Shape is colliding with.
     * @return True if the Shapes are colliding.
     */
Check if this Shape is colliding with another.

@param shape The other Shape that we want to see if this Shape is colliding with.
@return True if the Shapes are colliding.
Check if this Shape is colliding with another . @param shape The other Shape that we want to see if this Shape is colliding with . @return True if the Shapes are colliding .
public final boolean isCollidingWith(Shape<ParentEngine> shape)
    {
        Rectangle r = new Rectangle();
        r.setBounds(this.position.getX(), this.position.getY(), this.getSize().getWidth(), this.getSize().getHeight());
        Rectangle r2 = new Rectangle();
        r2.setBounds(shape.getPosition().getX(), shape.getPosition().getY(), shape.getSize().getWidth(), shape.getSize().getHeight());
        return (r.intersects(r2));
    }
public final boolean isCollidingWith ( Shape < ParentEngine > shape ) { Rectangle r = new Rectangle ( ) ; r . setBounds ( this . position . getX ( ) , this . position . getY ( ) , this . getSize ( ) . getWidth ( ) , this . getSize ( ) . getHeight ( ) ) ; Rectangle r2 = new Rectangle ( ) ; r2 . setBounds ( shape . getPosition ( ) . getX ( ) , shape . getPosition ( ) . getY ( ) , shape . getSize ( ) . getWidth ( ) , shape . getSize ( ) . getHeight ( ) ) ; return ( r . intersects ( r2 ) ) ; }
Check if this Shape is colliding with another.
Check if this Shape is colliding with another .