TankLib.cpp File Reference

#include <tank/TankLib.h>
#include <tank/TankContainer.h>
#include <tank/TankPosition.h>
#include <tank/TankState.h>
#include <common/RandomGenerator.h>
#include <common/OptionsTransient.h>
#include <common/Defines.h>
#include <landscapemap/LandscapeMaps.h>
#include <GLEXT/GLState.h>
#include <math.h>

Go to the source code of this file.

Functions

fixed TankLib::getDistanceToTank (FixedVector &position, Tank *targetTank)
void TankLib::getTanksSortedByDistance (ScorchedContext &context, FixedVector &position, std::list< std::pair< fixed, Tank * > > &result, unsigned int teams, fixed maxDistance)
bool TankLib::intersection (ScorchedContext &context, FixedVector position, fixed xy, fixed yz, fixed power, int dist)
bool TankLib::getSniperShotTowardsPosition (ScorchedContext &context, FixedVector &position, FixedVector &shootAt, fixed distForSniper, fixed &angleXYDegs, fixed &angleYZDegs, fixed &power, bool checkIntersection)
void TankLib::getShotTowardsPosition (ScorchedContext &context, RandomGenerator &random, FixedVector &position, FixedVector &shootAt, fixed &angleXYDegs, fixed &angleYZDegs, fixed &power)
FixedVectorTankLib::getVelocityVector (fixed xy, fixed yz)
FixedVectorTankLib::getGunPosition (fixed xy, fixed yz)


Generated on Mon Feb 16 15:14:59 2009 for Scorched3D by  doxygen 1.5.3