00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _CSENSOR_H
00010 #define _CSENSOR_H
00011
00012 #include "cObject.h"
00013
00014 #include <string>
00015
00033 class cAlert : public cObject {
00034 struct rShape {
00035 enum Shapes {
00036 CYLINDER, BOX, SPHERE, MAX_SHAPES
00037 };
00038 int type;
00039 float center[3];
00040 float range[3];
00041 };
00042 rShape shape;
00043 std::string message;
00044 OID group;
00045 bool fireinside;
00046 public:
00047 virtual float constrainParticle(float* worldpos, float radius = 0.0f, float* localpos = NULL) {
00048 return 0;
00049 }
00050 };
00051
00052 #endif
00053