rle.core.event
Class SystemCause
java.lang.Object
rle.core.event.SystemCause
- All Implemented Interfaces:
- Cause
public class SystemCause
- extends java.lang.Object
- implements Cause
Special-case Cause for changes made by a system-event, such as invoking a
"cheat" action.
Method Summary |
java.lang.String |
getCauseDescription()
The internationalized description of this Cause. |
java.lang.Object |
getSource()
The underlying Object that the Cause description refers to. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
instance
public static final SystemCause instance
SystemCause
public SystemCause()
getCauseDescription
public java.lang.String getCauseDescription()
- The internationalized description of this Cause. This should be able to
fit the basic sentence structure "Player Timmy, killed by [cause] on level
25."
- Specified by:
getCauseDescription
in interface Cause
getSource
public java.lang.Object getSource()
- The underlying Object that the Cause description refers to.
- Specified by:
getSource
in interface Cause
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object