#include <LandscapeEvents.h>

Public Member Functions | |
| virtual fixed | getNextEventTime (ScorchedContext &context, int eventNumber) |
| virtual bool | fireEvent (ScorchedContext &context, fixed timeLeft, int eventNumber) |
| virtual bool | readXML (XMLNode *node) |
Public Attributes | |
| fixed | randomchance |
| fixed | randomdelay |
Definition at line 67 of file LandscapeEvents.h.
| fixed LandscapeConditionRandom::getNextEventTime | ( | ScorchedContext & | context, | |
| int | eventNumber | |||
| ) | [virtual] |
Implements LandscapeCondition.
Definition at line 126 of file LandscapeEvents.cpp.
References ScorchedContext::getActionController(), RandomGenerator::getRandFixed(), ActionController::getRandom(), fixed::MAX_FIXED, randomchance, and randomdelay.
| bool LandscapeConditionRandom::fireEvent | ( | ScorchedContext & | context, | |
| fixed | timeLeft, | |||
| int | eventNumber | |||
| ) | [virtual] |
| bool LandscapeConditionRandom::readXML | ( | XMLNode * | node | ) | [virtual] |
Implements LandscapeCondition.
Definition at line 146 of file LandscapeEvents.cpp.
References XMLNode::failChildren(), XMLNode::getNamedChild(), randomchance, and randomdelay.
1.5.3