LandscapeConditionTime Class Reference

#include <LandscapeEvents.h>

Inheritance diagram for LandscapeConditionTime:

LandscapeCondition

List of all members.

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 mintime
fixed maxtime
bool singletimeonly


Detailed Description

Definition at line 53 of file LandscapeEvents.h.


Member Function Documentation

fixed LandscapeConditionTime::getNextEventTime ( ScorchedContext context,
int  eventNumber 
) [virtual]

Implements LandscapeCondition.

Definition at line 99 of file LandscapeEvents.cpp.

References ScorchedContext::getActionController(), RandomGenerator::getRandFixed(), ActionController::getRandom(), fixed::MAX_FIXED, maxtime, mintime, and singletimeonly.

bool LandscapeConditionTime::fireEvent ( ScorchedContext context,
fixed  timeLeft,
int  eventNumber 
) [virtual]

Implements LandscapeCondition.

Definition at line 111 of file LandscapeEvents.cpp.

bool LandscapeConditionTime::readXML ( XMLNode node  )  [virtual]

Implements LandscapeCondition.

Definition at line 117 of file LandscapeEvents.cpp.

References XMLNode::failChildren(), XMLNode::getNamedChild(), maxtime, mintime, and singletimeonly.


Member Data Documentation

fixed LandscapeConditionTime::mintime

Definition at line 56 of file LandscapeEvents.h.

Referenced by getNextEventTime(), and readXML().

fixed LandscapeConditionTime::maxtime

Definition at line 57 of file LandscapeEvents.h.

Referenced by getNextEventTime(), and readXML().

bool LandscapeConditionTime::singletimeonly

Definition at line 58 of file LandscapeEvents.h.

Referenced by getNextEventTime(), and readXML().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:03 2009 for Scorched3D by  doxygen 1.5.3