|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.speckled.specksim.WallManager
public class WallManager
Manages the loading and manipulation of WallProviders
| Method Summary | |
|---|---|
boolean |
blockedByWall(Point3d position,
Point3d position2,
MessageShell shell)
Performs a brute-force search to see if the supplied line segment intersects a wall |
Configurator |
getConfigurator()
Gets a Configurator object that describes and can manipulate the variables of this Configurable. |
Wall[] |
getWalls()
Gets the current crop of walls |
void |
notifyListeners()
Call this method in order to notify listeners that the walls have changed |
static boolean |
register(java.lang.String className)
Call this method to register a WallProvider
implementation class |
void |
setProvider(java.lang.String name)
Sets the current WallProvider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean blockedByWall(Point3d position,
Point3d position2,
MessageShell shell)
position - The startpoint of the line segmentposition2 - The endpoint of the line segmentshell - The shell used in the transmission
true if the line segment intersects a
wall, false otherwisepublic Wall[] getWalls()
Wall objectspublic void notifyListeners()
public static boolean register(java.lang.String className)
WallProvider
implementation class
className - The name of the implemented WallProvider
true if the registration was successful,
false otherwisepublic Configurator getConfigurator()
Configurable
getConfigurator in interface Configurablepublic void setProvider(java.lang.String name)
WallProvider. The provider must have
been previously registered.
name - The name of the desired WallProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||