Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

clientconnclnt.h

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------- //
00002 //
00003 // MODULE  : clientconnclnt.h
00004 //
00005 // PURPOSE : CClientConnClnt object class - Definition
00006 //
00007 // CREATED : 02/11/01
00008 //
00009 // (c) 2001 LithTech, Inc.  All Rights Reserved
00010 //
00011 // ----------------------------------------------------------------------- //
00012 
00013 #ifndef __CLIENT_CONN_CLNT_H__
00014 #define __CLIENT_CONN_CLNT_H__
00015 
00016 
00017 // Engine includes
00018 #include <ltengineobjectsclient.h>
00019 #include <autoview/autoview.h>
00020 
00022 class CClientConnClnt : public BaseClassClient
00023 {
00024 public:
00025     // Construction / destruction
00026     CClientConnClnt();
00027     virtual ~CClientConnClnt();
00028 
00029     distr_class(CClientConnClnt);
00030 
00031     // Called when server updates the associated values
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; // Flag to mark first update loop.
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__

Generated on Mon Mar 4 08:42:23 2002 for Aria by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002