Class CheckDateReachedStoryPoint
java.lang.Object
mekhq.campaign.storyarc.StoryPoint
mekhq.campaign.storyarc.storypoint.CheckDateReachedStoryPoint
StoryPoint to check whether a certain date has been reached. The
StoryArc
will
check for StoryPoints of this class whenever a new day is reached and if the
date matches, this StoryPoint will start
and complete.
if the exact date cannot be known ahead of time, date can be left null
initially and a
SetDateStoryTrigger
can be used by another story
point to assign a date some specified number of days in the future.
-
Field Summary
Fields inherited from class mekhq.campaign.storyarc.StoryPoint
storyOutcomes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDate()
protected String
Returns a string specifying the result from this StoryPoint.getTitle()
protected void
loadFieldsFromXmlNode
(Node wn, Campaign c, megamek.Version version) void
void
start()
Do whatever needs to be done to start this story point.void
writeToXml
(PrintWriter pw1, int indent) Methods inherited from class mekhq.campaign.storyarc.StoryPoint
complete, generateInstanceFromXML, getCampaign, getId, getName, getNextStoryPoint, getObjective, getStoryArc, isActive, proceedToNextStoryPoint, setId, setStoryArc, writeToXmlBegin, writeToXmlEnd
-
Constructor Details
-
CheckDateReachedStoryPoint
public CheckDateReachedStoryPoint()
-
-
Method Details
-
getDate
-
setDate
-
getTitle
- Specified by:
getTitle
in classStoryPoint
-
getResult
Description copied from class:StoryPoint
Returns a string specifying the result from this StoryPoint. This can be used to identify different possible results, when multiple results are possible. If different results are not possible, an empty string can be returned.- Specified by:
getResult
in classStoryPoint
- Returns:
- A String specifying the result
-
start
public void start()Description copied from class:StoryPoint
Do whatever needs to be done to start this story point. Specific story point types may need to override this- Overrides:
start
in classStoryPoint
-
writeToXml
- Specified by:
writeToXml
in classStoryPoint
-
loadFieldsFromXmlNode
protected void loadFieldsFromXmlNode(Node wn, Campaign c, megamek.Version version) throws ParseException - Specified by:
loadFieldsFromXmlNode
in classStoryPoint
- Throws:
ParseException
-