#include <RoofMaps.h>
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) |
| HeightMap & | getRoofMap () |
Protected Member Functions | |
| void | generateRMap (ScorchedContext &context, ProgressCounter *counter=0) |
Protected Attributes | |
| LandscapeDefinitionCache & | defnCache_ |
| HeightMap | rmap_ |
Definition at line 28 of file RoofMaps.h.
| RoofMaps::RoofMaps | ( | LandscapeDefinitionCache & | defnCache | ) |
Definition at line 28 of file RoofMaps.cpp.
| RoofMaps::~RoofMaps | ( | ) | [virtual] |
Definition at line 33 of file RoofMaps.cpp.
| 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.
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] |
| 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().
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().
1.5.3