|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object ConfigurableWorldModule AbstractModule TunnelModule
public class TunnelModule
adds tunnels to the world. Needs to be applied after all the modules that generate whatever runs through the tunnels.
Nested Class Summary | |
---|---|
static class |
TunnelModule.Tunnel
|
static class |
TunnelModule.TunnelEntrance
|
static class |
TunnelModule.TunnelJunction
|
Field Summary |
---|
Fields inherited from class ConfigurableWorldModule |
---|
config |
Constructor Summary | |
---|---|
TunnelModule()
|
Method Summary | |
---|---|
protected void |
applyToNode(MapNode node)
create WorldObject s for a MapNode . |
protected void |
applyToWaySegment(MapWaySegment segment)
create WorldObject s for a MapWaySegment . |
static boolean |
isTunnel(MapSegment segment)
|
static boolean |
isTunnel(TagGroup tags)
|
Methods inherited from class AbstractModule |
---|
applyTo, applyToArea, applyToElement |
Methods inherited from class ConfigurableWorldModule |
---|
setConfiguration |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TunnelModule()
Method Detail |
---|
public static final boolean isTunnel(TagGroup tags)
public static final boolean isTunnel(MapSegment segment)
protected void applyToWaySegment(MapWaySegment segment)
AbstractModule
WorldObject
s for a MapWaySegment
.
Can be overwritten by subclasses.
The default implementation calls AbstractModule.applyToElement(MapElement)
.
applyToWaySegment
in class AbstractModule
protected void applyToNode(MapNode node)
AbstractModule
WorldObject
s for a MapNode
.
Can be overwritten by subclasses.
The default implementation calls AbstractModule.applyToElement(MapElement)
.
applyToNode
in class AbstractModule
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |