|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.scorebot.util.Event
cdx.scorebot.scoring.ScoreEvent
public abstract class ScoreEvent
describes a change in score due to a penalty or bonus (includes all relevant information as to why)
Constructor Summary | |
---|---|
ScoreEvent(int scoreChange,
java.lang.String title,
java.lang.String msg)
Creates the ScoreEvent from the specified parameters. |
Method Summary | |
---|---|
java.lang.String |
getExplanation()
gets why this score event was created (explains the score change) |
ScoringInfo |
getScoringInfo()
gets the object which contains the score change as a result of this event as well as any thresholds which modify that change |
java.lang.String |
getTitle()
gets the title of the event |
void |
setExplanation(java.lang.String explanation)
sets why this score event was created (explains the score change) |
void |
setTitle(java.lang.String title)
sets the title of the event |
java.lang.String |
toString()
|
Methods inherited from class cdx.scorebot.util.Event |
---|
getFilename, getTimeGenerated, getTimeReported, isReported, setFilename, setTimeGenerated, setTimeReported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScoreEvent(int scoreChange, java.lang.String title, java.lang.String msg)
scoreChange
- the number of points to add to the score (negative number => penalty)title
- a descriptive heading for the eventmsg
- explanation for the score changeMethod Detail |
---|
public java.lang.String getExplanation()
public void setExplanation(java.lang.String explanation)
public ScoringInfo getScoringInfo()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |