|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kolls.railworld.play.script.TalCondition
public class TalCondition
A train-action-listener condition includes a train action listener, a train, and an event name. The listener is notified when the given event occurs for the given train. The train may be null which means the listener will be notified for the given event for any train.
| Field Summary | |
|---|---|
java.lang.String |
event
Event name to watch for. |
Train |
t
Train to watch for, or null for any train. |
TrainActionListener |
tal
Listener to notify |
| Constructor Summary | |
|---|---|
TalCondition(TrainActionListener tal,
Train t,
java.lang.String event)
Create a condition |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public TrainActionListener tal
public Train t
public java.lang.String event
TrainActionListener.trainAction(Train, String).
| Constructor Detail |
|---|
public TalCondition(TrainActionListener tal,
Train t,
java.lang.String event)
tal - See talt - See tevent - See event| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||