|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object physics.CollisionGroup
public class CollisionGroup
Constructor Summary | |
---|---|
CollisionGroup(DrawingCanvas dp)
Creates a new CollisionGroup instance. |
Method Summary | |
---|---|
void |
add(CollisionObject co)
Adds a CollisionObject to the CollisionGroup |
void |
addAllWalls()
Add all the walls to the Collision Group |
void |
addEastWall()
Adds the East Wall to the Collision Group |
void |
addNorthWall()
Adds the North Wall to the Collision Group |
void |
addSouthWall()
Adds the South Wall to the Collision Group |
void |
addWestWall()
addWestWall Adds the West Wall to the Collision Group |
DrawingCanvas |
getDP()
Returns the DrawingPanel that the Collision Objects are on |
ArrayList |
getGroup()
Returns the Arraylist containing the CollsionObjects |
void |
remove(CollisionObject co)
Removes the CollisionObject from the group |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollisionGroup(DrawingCanvas dp)
CollisionGroup
instance.
dp
- a NGP.Containers.DrawingPanel
that the
Collision Objects of this group are onMethod Detail |
---|
public void add(CollisionObject co)
co
- a CollisionObject
to add to the grouppublic ArrayList getGroup()
ArrayList
containing the CollisionObjects in
this grouppublic void remove(CollisionObject co)
co
- a CollisionObject
to be removedpublic void addNorthWall()
public void addSouthWall()
public void addWestWall()
addWestWall
Adds the West Wall to the Collision Group
public void addEastWall()
public void addAllWalls()
public DrawingCanvas getDP()
NGP.Containers.DrawingPanel
that contains the
Collision Objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |