#include <World.h>
Public Member Functions | |
CSphere (CWorld *world, float radius) | |
~CSphere () | |
float | GetDensity () |
Overrides CThing::GetDensity for CSphere. | |
void | SetDensity (float d) |
Overrides CThing::SetDensity for CSphere. | |
int | Type () |
Returns TYPE_CSPHERE. |
CSphere::CSphere | ( | CWorld * | world, | |
float | radius | |||
) |
Constructor. A sphere must never be created this way. Use CWorld::CreateSphere instead.
world | The CWorld instance that this sphere will belong to. | |
radius | The radius of the sphere. |
CSphere::~CSphere | ( | ) |
Destructor A sphere must never be destroyed this way. Use CWorld::RemoveThing instead.