PlacementShadowDefinition Class Reference

#include <PlacementShadowDefinition.h>

List of all members.

Public Member Functions

 PlacementShadowDefinition ()
virtual ~PlacementShadowDefinition ()
virtual bool readXML (XMLNode *node, const char *base)
void updateLandscapeHeight (ScorchedContext &context, FixedVector &position, FixedVector &size)
void updateLandscapeTexture (bool useShadows, ScorchedContext &context, FixedVector &position, FixedVector &size)
void setDrawShadow (bool draw)

Protected Attributes

bool drawShadow_
fixed flattenArea_
ImageID groundMap_

Classes

struct  Entry


Detailed Description

Definition at line 28 of file PlacementShadowDefinition.h.


Constructor & Destructor Documentation

PlacementShadowDefinition::PlacementShadowDefinition (  ) 

Definition at line 28 of file PlacementShadowDefinition.cpp.

PlacementShadowDefinition::~PlacementShadowDefinition (  )  [virtual]

Definition at line 33 of file PlacementShadowDefinition.cpp.


Member Function Documentation

bool PlacementShadowDefinition::readXML ( XMLNode node,
const char *  base 
) [virtual]

Definition at line 37 of file PlacementShadowDefinition.cpp.

References drawShadow_, flattenArea_, XMLNode::getNamedChild(), groundMap_, and ImageID::initFromNode().

Referenced by TargetDefinition::readXML(), TankDefinition::readXML(), and PlacementObjectShadow::readXML().

void PlacementShadowDefinition::updateLandscapeHeight ( ScorchedContext context,
FixedVector position,
FixedVector size 
)

Definition at line 51 of file PlacementShadowDefinition.cpp.

References DeformLandscape::flattenArea(), flattenArea_, and MAX.

Referenced by GroundMaps::generateObjects().

void PlacementShadowDefinition::updateLandscapeTexture ( bool  useShadows,
ScorchedContext context,
FixedVector position,
FixedVector size 
)

Definition at line 70 of file PlacementShadowDefinition.cpp.

References ImageModifier::addBitmapToLandscape(), ImageModifier::addCircleToLandscape(), drawShadow_, groundMap_, ImageID::imageValid(), ImageStore::instance(), ImageStore::loadImage(), and MAX.

Referenced by Landscape::generate().

void PlacementShadowDefinition::setDrawShadow ( bool  draw  )  [inline]

Definition at line 55 of file PlacementShadowDefinition.h.

References drawShadow_.

Referenced by PlacementObjectShadow::readXML(), TankDefinition::TankDefinition(), and TargetDefinition::TargetDefinition().


Member Data Documentation

bool PlacementShadowDefinition::drawShadow_ [protected]

Definition at line 58 of file PlacementShadowDefinition.h.

Referenced by readXML(), setDrawShadow(), and updateLandscapeTexture().

fixed PlacementShadowDefinition::flattenArea_ [protected]

Definition at line 59 of file PlacementShadowDefinition.h.

Referenced by readXML(), and updateLandscapeHeight().

ImageID PlacementShadowDefinition::groundMap_ [protected]

Definition at line 60 of file PlacementShadowDefinition.h.

Referenced by readXML(), and updateLandscapeTexture().


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