LandscapeConditionGroupSize Class Reference

#include <LandscapeEvents.h>

Inheritance diagram for LandscapeConditionGroupSize:

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

int groupsize
std::string groupname


Detailed Description

Definition at line 40 of file LandscapeEvents.h.


Member Function Documentation

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

Implements LandscapeCondition.

Definition at line 68 of file LandscapeEvents.cpp.

References fixed::MAX_FIXED.

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

Implements LandscapeCondition.

Definition at line 73 of file LandscapeEvents.cpp.

References LandscapeMaps::getGroundMaps(), TargetGroups::getGroup(), GroundMaps::getGroups(), ScorchedContext::getLandscapeMaps(), TargetGroupsSetEntry::getObjectCount(), groupname, and groupsize.

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

Implements LandscapeCondition.

Definition at line 91 of file LandscapeEvents.cpp.

References XMLNode::failChildren(), XMLNode::getNamedChild(), groupname, and groupsize.


Member Data Documentation

int LandscapeConditionGroupSize::groupsize

Definition at line 43 of file LandscapeEvents.h.

Referenced by fireEvent(), and readXML().

std::string LandscapeConditionGroupSize::groupname

Definition at line 44 of file LandscapeEvents.h.

Referenced by fireEvent(), 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