location.h

Go to the documentation of this file.
00001 #ifndef LOCATION_H
00002 #define LOCATION_H
00003 
00004 #include "lugre_smartptr.h"
00005 #include "lugre_net.h"
00006 #include <list>
00007 
00008 using namespace Lugre;
00009 
00010 class lua_State;
00011 class cObject;
00012     
00013 namespace Lugre {
00014     class cFIFO;
00015     class cUDP_SendSocket;
00016 };
00017     
00019 class cLocation : public cSmartPointable { public:
00020     std::list<cObject*>     mlObjects;
00021     float                   mfBoundingRad; 
00022     
00023     cLocation           ();
00024     virtual ~cLocation  ();
00025     
00026     void    StepAllObjects      (const int iCurTime,const float fPhysStepTime,const bool bIncResyncCounterLow=false);
00027     void    DeleteAllObjects    ();
00028     int     CountParents        ();
00029     int     SendResyncs         (cUDP_SendSocket& pUDPSocket,const uint32 iAddr,const int iPort,const int iMinLastChangeTime=0,const float fRandomResyncProb=0.0);
00030     int     StoreResyncs        (cFIFO& pFIFO,const int iMinLastChangeTime=0,const float fRandomResyncProb=0.0);
00031     
00032     // lua binding
00033     static void     LuaRegister     (lua_State *L);
00034 };
00035 
00036 #endif

Generated on Wed May 23 06:00:13 2012 for cpp by  doxygen 1.5.6