#include <placement/PlacementTankPosition.h>#include <landscapedef/LandscapeDefn.h>#include <landscapemap/LandscapeMaps.h>#include <landscapemap/DeformLandscape.h>#include <tank/TankContainer.h>#include <tank/TankPosition.h>#include <tank/TankState.h>#include <target/TargetLife.h>#include <target/TargetSpace.h>#include <target/TargetState.h>#include <image/ImageFactory.h>#include <common/Logger.h>Go to the source code of this file.
Functions | |
| void | PlacementTankPosition::flattenTankPositions (ScorchedContext &context) |
| static bool | tankMaskCloseness (ScorchedContext &context, int team, FixedVector &tankPos, Image *tankMask) |
| static bool | tankTargetCloseness (ScorchedContext &context, unsigned int playerId, FixedVector &tankPos, fixed tankCloseness) |
| FixedVector | PlacementTankPosition::placeTank (unsigned int playerId, int team, ScorchedContext &context, RandomGenerator &generator) |
| static bool tankMaskCloseness | ( | ScorchedContext & | context, | |
| int | team, | |||
| FixedVector & | tankPos, | |||
| Image * | tankMask | |||
| ) | [static] |
Definition at line 68 of file PlacementTankPosition.cpp.
References Image::getBits(), LandscapeMaps::getDefinitions(), LandscapeDefinitionCache::getDefn(), Image::getHeight(), LandscapeDefn::getLandscapeHeight(), ScorchedContext::getLandscapeMaps(), LandscapeDefn::getLandscapeWidth(), and Image::getWidth().
Referenced by PlacementTankPosition::placeTank().
| static bool tankTargetCloseness | ( | ScorchedContext & | context, | |
| unsigned int | playerId, | |||
| FixedVector & | tankPos, | |||
| fixed | tankCloseness | |||
| ) | [static] |
Definition at line 125 of file PlacementTankPosition.cpp.
References fixed::asInt(), TankContainer::getAllTanks(), Target::getBorder(), TargetSpace::getCollisionSet(), Target::getLife(), Target::getPlayerId(), TankState::getSpectator(), TankState::getState(), Tank::getState(), ScorchedContext::getTankContainer(), TargetLife::getTargetPosition(), ScorchedContext::getTargetSpace(), Target::isTarget(), MAX, TankState::sDead, and TankState::sNormal.
Referenced by PlacementTankPosition::placeTank().
1.5.3