1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#ifndef WORLDOBJECT_H
#define WORLDOBJECT_H
// WorldObject.h: interface for the CWorldObject class.
//
//////////////////////////////////////////////////////////////////////
#include "Object.h"
#include "float3.h"
class CWorldObject: public CObject
{
public:
CR_DECLARE(CWorldObject);
CWorldObject():
id(0), useAirLos(false), alwaysVisible(false) {}
CWorldObject(const float3& pos):
id(0), pos(pos), useAirLos(false), alwaysVisible(false) {}
void SetRadius(float r);
virtual ~CWorldObject();
virtual void DrawS3O();
int id;
float3 pos;
float radius; ///< used for collisions
float sqRadius;
float drawRadius; ///< used to see if in los
bool useAirLos;
bool alwaysVisible;
};
#endif /* WORLDOBJECT_H */
|