#include <PlacementShadowDefinition.h>
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 |
Definition at line 28 of file PlacementShadowDefinition.h.
| PlacementShadowDefinition::PlacementShadowDefinition | ( | ) |
Definition at line 28 of file PlacementShadowDefinition.cpp.
| PlacementShadowDefinition::~PlacementShadowDefinition | ( | ) | [virtual] |
Definition at line 33 of file PlacementShadowDefinition.cpp.
| 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().
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().
1.5.3