|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.user.events.Action
public class Action
An action (event) that has happened in the game (or the system) and can be accepted by various event handlers. In most systems, these would be called an Event, except that the existing terminology conflicts.
Field Summary | |
---|---|
private String |
indirectObject
WRITEME: Document this brpocock@star-hope.org |
private AbstractUser |
object
WRITEME: Document this brpocock@star-hope.org |
private AbstractUser |
subject
WRITEME: Document this brpocock@star-hope.org |
private Object[] |
trailer
WRITEME: Document this brpocock@star-hope.org |
private String |
verb
WRITEME: Document this brpocock@star-hope.org |
private Room |
where
WRITEME: Document this brpocock@star-hope.org |
Constructor Summary | |
---|---|
Action(AbstractUser someSubject,
String someVerb,
AbstractUser someObject,
Object... optionalTrailer)
WRITEME: Document this constructor brpocock@star-hope.org |
|
Action(AbstractUser someSubject,
String someVerb,
AbstractUser someObject,
String someIndirectObject,
Object... optionalTrailer)
WRITEME: Document this constructor brpocock@star-hope.org |
|
Action(AbstractUser someSubject,
String someVerb,
Object... optionalTrailer)
Create a new Action with only a subject, verb, and optional trailer records |
|
Action(AbstractUser someSubject,
String someVerb,
String someIndirectObject,
Object... optionalTrailer)
WRITEME: Document this constructor brpocock@star-hope.org |
|
Action(Room somewhere,
AbstractUser someSubject,
String someVerb,
AbstractUser someObject,
Object... optionalTrailer)
WRITEME: Document this constructor brpocock@star-hope.org |
|
Action(Room somewhere,
AbstractUser someSubject,
String someVerb,
AbstractUser someObject,
String someIndirectObject,
Object... optionalTrailer)
WRITEME: Document this constructor brpocock@star-hope.org |
|
Action(Room newWhere,
AbstractUser newSubject,
String newVerb,
Object... newTrailer)
WRITEME: Document this constructor brpocock@star-hope.org |
|
Action(Room somewhere,
AbstractUser someSubject,
String someVerb,
String someIndirectObject,
Object... optionalTrailer)
WRITEME: Document this constructor brpocock@star-hope.org |
|
Action(String justAVerb)
an Action with just a bare verb |
|
Action(String v,
String dative)
WRITEME: Document this constructor brpocock@star-hope.org |
Method Summary | |
---|---|
String |
getIndirectObject()
|
AbstractUser |
getObject()
|
AbstractUser |
getSubject()
|
Object[] |
getTrailer()
|
Object |
getTrailer(int n)
Get an item from the trailer, if it exists, or a “null” if not. |
String |
getTrailerString(int n)
Get a string from the trailer, if it exists, or a zero-length string, if not. |
String |
getVerb()
|
Room |
getWhere()
|
void |
log()
WRITEME: Document this method brpocock@star-hope.org |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final String indirectObject
private final AbstractUser object
private final AbstractUser subject
private final Object[] trailer
private final String verb
private final Room where
Constructor Detail |
---|
public Action(AbstractUser someSubject, String someVerb, AbstractUser someObject, Object... optionalTrailer)
someSubject
- WRITEMEsomeVerb
- WRITEMEsomeObject
- WRITEMEoptionalTrailer
- WRITEMEpublic Action(AbstractUser someSubject, String someVerb, AbstractUser someObject, String someIndirectObject, Object... optionalTrailer)
someSubject
- WRITEMEsomeVerb
- WRITEMEsomeObject
- WRITEMEsomeIndirectObject
- WRITEMEoptionalTrailer
- WRITEMEpublic Action(AbstractUser someSubject, String someVerb, Object... optionalTrailer)
someSubject
- subjectsomeVerb
- verboptionalTrailer
- optional trailerpublic Action(AbstractUser someSubject, String someVerb, String someIndirectObject, Object... optionalTrailer)
someSubject
- WRITEMEsomeVerb
- WRITEMEsomeIndirectObject
- WRITEMEoptionalTrailer
- WRITEMEpublic Action(Room somewhere, AbstractUser someSubject, String someVerb, AbstractUser someObject, Object... optionalTrailer)
somewhere
- WRITEMEsomeSubject
- WRITEMEsomeVerb
- WRITEMEsomeObject
- WRITEMEoptionalTrailer
- WRITEMEpublic Action(Room somewhere, AbstractUser someSubject, String someVerb, AbstractUser someObject, String someIndirectObject, Object... optionalTrailer)
somewhere
- WRITEMEsomeSubject
- WRITEMEsomeVerb
- WRITEMEsomeObject
- WRITEMEsomeIndirectObject
- WRITEMEoptionalTrailer
- WRITEMEpublic Action(Room newWhere, AbstractUser newSubject, String newVerb, Object... newTrailer)
newWhere
- WRITEMEnewSubject
- WRITEMEnewVerb
- WRITEMEnewTrailer
- WRITEMEpublic Action(Room somewhere, AbstractUser someSubject, String someVerb, String someIndirectObject, Object... optionalTrailer)
somewhere
- WRITEMEsomeSubject
- WRITEMEsomeVerb
- WRITEMEsomeIndirectObject
- WRITEMEoptionalTrailer
- WRITEMEpublic Action(String justAVerb)
justAVerb
- just a verbpublic Action(String v, String dative)
v
- verbdative
- indirect objectMethod Detail |
---|
public String getIndirectObject()
public AbstractUser getObject()
public AbstractUser getSubject()
public Object[] getTrailer()
public Object getTrailer(int n)
n
- the index into the trailer records
public String getTrailerString(int n)
n
- the index into the trailer records
public String getVerb()
public Room getWhere()
public void log()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |