LandscapeConditionRandom Class Reference

#include <LandscapeEvents.h>

Inheritance diagram for LandscapeConditionRandom:

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 randomchance
fixed randomdelay


Detailed Description

Definition at line 67 of file LandscapeEvents.h.


Member Function Documentation

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]

Implements LandscapeCondition.

Definition at line 140 of file LandscapeEvents.cpp.

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

Implements LandscapeCondition.

Definition at line 146 of file LandscapeEvents.cpp.

References XMLNode::failChildren(), XMLNode::getNamedChild(), randomchance, and randomdelay.


Member Data Documentation

fixed LandscapeConditionRandom::randomchance

Definition at line 70 of file LandscapeEvents.h.

Referenced by getNextEventTime(), and readXML().

fixed LandscapeConditionRandom::randomdelay

Definition at line 71 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