00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef __CLIENT_CONN_CLNT_H__
00014 #define __CLIENT_CONN_CLNT_H__
00015
00016
00017
00018 #include <ltengineobjectsclient.h>
00019 #include <autoview/autoview.h>
00020
00022 class CClientConnClnt : public BaseClassClient
00023 {
00024 public:
00025
00026 CClientConnClnt();
00027 virtual ~CClientConnClnt();
00028
00029 distr_class(CClientConnClnt);
00030
00031
00032 virtual void RemotePositionUpdate(LTVector3f& newPosition);
00033 virtual void RemoteRotationUpdate(LTOrientation& newOrientation);
00034 virtual void RemoteVelocityUpdate(LTVector3f& newVelocity);
00035 virtual void RemoteAngularVelocityUpdate(LTVector3f& newAngVelocity);
00036
00037 void Init();
00038
00039 void OnCommandOn(int32 command, uint32 nActCmd);
00040 void OnCommandOff(int32 command, uint32 nActCmd);
00041
00042 LTRESULT HandleInput();
00043 LTRESULT Update(float fFrameTime);
00044
00045 void SetRotation(LTOrientation oRot);
00046
00047 int32 GetClientID() { return m_nClientID; }
00048
00049 void CallbackClientID(const uint32& nOldVal);
00050
00051 void AddPlayer();
00052 void RemovePlayer();
00053
00054 protected:
00055 bool m_bFirstUpdate;
00056
00057 distr_callback_fn(CClientConnClnt, uint32, m_nClientID, CallbackClientID);
00058 distr_uint32_callback(m_nClientID, AVITEM_REG, 11, 0);
00059 distr_uint32(m_nPlayers, AVITEM_REG, 10, 0);
00060
00061 };
00062
00063
00064 #endif // __CLIENT_CONN_CLNT_H__