|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmako5.math.phys.Bounds
mako5.math.phys.Boundary
public class Boundary
A horizontal or verticle boundary that cannot be passed.
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 |
---|
public static final boolean RIGHT
public static final boolean LEFT
public static final boolean ABOVE
public static final boolean BELOW
public static final boolean HORIZONTAL
public static final boolean VERTICAL
Constructor Detail |
---|
public Boundary(boolean bType_, boolean bWallSide_, float fLoc_)
bType_
- whether this boundary is HORIZONTAL or VERTICALbWallSide_
- where the wall (solid) segment is locatedfLoc_
- the location value of this wallMethod Detail |
---|
public Bounds getBounds()
getBounds
in interface Bounded
public boolean isCollision(R2v r)
isCollision
in class Bounds
r
- the point to test for collision withpublic boolean getWallType()
public boolean getSolidSide()
public boolean isCollision(Bounds rBounds_)
public void notifyCollision(Bounded other)
notifyCollision
in interface Bounded
other
- the other colliding object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |