RoofMaps Class Reference

#include <RoofMaps.h>

List of all members.

Public Member Functions

 RoofMaps (LandscapeDefinitionCache &defnCache)
virtual ~RoofMaps ()
void generateMaps (ScorchedContext &context, ProgressCounter *counter=0)
fixed getRoofHeight (int x, int y)
fixed getInterpRoofHeight (fixed x, fixed y)
HeightMapgetRoofMap ()

Protected Member Functions

void generateRMap (ScorchedContext &context, ProgressCounter *counter=0)

Protected Attributes

LandscapeDefinitionCachedefnCache_
HeightMap rmap_


Detailed Description

Definition at line 28 of file RoofMaps.h.


Constructor & Destructor Documentation

RoofMaps::RoofMaps ( LandscapeDefinitionCache defnCache  ) 

Definition at line 28 of file RoofMaps.cpp.

RoofMaps::~RoofMaps (  )  [virtual]

Definition at line 33 of file RoofMaps.cpp.


Member Function Documentation

void RoofMaps::generateMaps ( ScorchedContext context,
ProgressCounter counter = 0 
)

Definition at line 37 of file RoofMaps.cpp.

References generateRMap().

Referenced by LandscapeMaps::generateMaps().

fixed RoofMaps::getRoofHeight ( int  x,
int  y 
)

Definition at line 44 of file RoofMaps.cpp.

References defnCache_, LandscapeDefnType::eRoofCavern, LandscapeDefinitionCache::getDefn(), HeightMap::getHeight(), LandscapeDefn::getLandscapeHeight(), LandscapeDefn::getLandscapeWidth(), HeightMap::getMapHeight(), HeightMap::getMapWidth(), LandscapeDefnType::getType(), fixed::MAX_FIXED, rmap_, and LandscapeDefn::roof.

fixed RoofMaps::getInterpRoofHeight ( fixed  x,
fixed  y 
)

Definition at line 70 of file RoofMaps.cpp.

References defnCache_, LandscapeDefnType::eRoofCavern, LandscapeDefinitionCache::getDefn(), HeightMap::getInterpHeight(), LandscapeDefn::getLandscapeHeight(), LandscapeDefn::getLandscapeWidth(), HeightMap::getMapHeight(), HeightMap::getMapWidth(), LandscapeDefnType::getType(), fixed::MAX_FIXED, rmap_, and LandscapeDefn::roof.

Referenced by WeaponRoller::fireWeapon(), WeaponAimedOver::fireWeapon(), and PhysicsParticleObject::getRoofCollision().

HeightMap& RoofMaps::getRoofMap (  )  [inline]

Definition at line 41 of file RoofMaps.h.

References rmap_.

void RoofMaps::generateRMap ( ScorchedContext context,
ProgressCounter counter = 0 
) [protected]

Definition at line 90 of file RoofMaps.cpp.

References HeightMap::create(), defnCache_, S3D::dialogExit(), LandscapeDefnType::eRoofCavern, HeightMapLoader::generateTerrain(), LandscapeDefinitionCache::getDefn(), HeightMap::getHeight(), LandscapeDefn::getLandscapeHeight(), LandscapeDefn::getLandscapeWidth(), HeightMap::getMapHeight(), HeightMap::getMapWidth(), HeightMap::getNormal(), LandscapeDefinitionCache::getSeed(), LandscapeDefnType::getType(), LandscapeDefnRoofCavern::height, LandscapeDefnRoofCavern::heightmap, rmap_, LandscapeDefn::roof, HeightMap::setHeight(), and HeightMapModifier::smooth().

Referenced by generateMaps().


Member Data Documentation

LandscapeDefinitionCache& RoofMaps::defnCache_ [protected]

Definition at line 44 of file RoofMaps.h.

Referenced by generateRMap(), getInterpRoofHeight(), and getRoofHeight().

HeightMap RoofMaps::rmap_ [protected]

Definition at line 47 of file RoofMaps.h.

Referenced by generateRMap(), getInterpRoofHeight(), getRoofHeight(), and getRoofMap().


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