mako5.math.phys
Class Boundary

java.lang.Object
  extended by mako5.math.phys.Bounds
      extended by mako5.math.phys.Boundary
All Implemented Interfaces:
Bounded

public class Boundary
extends Bounds
implements Bounded

A horizontal or verticle boundary that cannot be passed.

Version:
18-Feb 2006
Author:
Paul Jarrett

Field Summary
static boolean ABOVE
           
static boolean BELOW
           
static boolean HORIZONTAL
           
static boolean LEFT
           
static boolean RIGHT
           
static boolean VERTICAL
           
 
Fields inherited from class mako5.math.phys.Bounds
BOUNDARY, CIRCLE, LINE, RECT
 
Constructor Summary
Boundary(boolean bType_, boolean bWallSide_, float fLoc_)
          Makes a new Boundary.
 
Method Summary
 Bounds getBounds()
          Returns this.
 boolean getSolidSide()
          Returns the solid side of the boundary
 boolean getWallType()
          Returns the type of boundary that this is.
 boolean isCollision(Bounds rBounds_)
          Returns true if the given object breaks this boundary.
 boolean isCollision(R2v r)
          Returns true if the object broke this boundary...
 void notifyCollision(Bounded other)
          Do nothing on collision.
 
Methods inherited from class mako5.math.phys.Bounds
aliasLoc, getLocation, getType, testCollision, testCollision
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RIGHT

public static final boolean RIGHT
See Also:
Constant Field Values

LEFT

public static final boolean LEFT
See Also:
Constant Field Values

ABOVE

public static final boolean ABOVE
See Also:
Constant Field Values

BELOW

public static final boolean BELOW
See Also:
Constant Field Values

HORIZONTAL

public static final boolean HORIZONTAL
See Also:
Constant Field Values

VERTICAL

public static final boolean VERTICAL
See Also:
Constant Field Values
Constructor Detail

Boundary

public Boundary(boolean bType_,
                boolean bWallSide_,
                float fLoc_)
Makes a new Boundary.

Parameters:
bType_ - whether this boundary is HORIZONTAL or VERTICAL
bWallSide_ - where the wall (solid) segment is located
fLoc_ - the location value of this wall
Method Detail

getBounds

public Bounds getBounds()
Returns this.

Specified by:
getBounds in interface Bounded
Returns:
this boundary object
Since:
01-Apr 2006

isCollision

public boolean isCollision(R2v r)
Returns true if the object broke this boundary... not implemented.

Specified by:
isCollision in class Bounds
Parameters:
r - the point to test for collision with

getWallType

public boolean getWallType()
Returns the type of boundary that this is.

Returns:
the type of boundary that this is
Since:
01-Apr 2006

getSolidSide

public boolean getSolidSide()
Returns the solid side of the boundary

Returns:
the solid side of the boundary

isCollision

public boolean isCollision(Bounds rBounds_)
Returns true if the given object breaks this boundary.


notifyCollision

public void notifyCollision(Bounded other)
Do nothing on collision.

Specified by:
notifyCollision in interface Bounded
Parameters:
other - the other colliding object