Planeshift
psclientdr.h
Go to the documentation of this file.
1 /*
2  * psclientpersist.h by Matze Braun <MatzeBraun@gmx.de>
3  *
4  * Copyright (C) 2002 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 #ifndef __PSCLIENTPERSIST_H__
20 #define __PSCLIENTPERSIST_H__
21 //=============================================================================
22 // Crystal Space Includes
23 //=============================================================================
24 #include <csutil/ref.h>
25 #include <csutil/strhashr.h>
26 
27 //=============================================================================
28 // Project Includes
29 //=============================================================================
30 #include "net/cmdbase.h"
31 
32 //=============================================================================
33 // Local Includes
34 //=============================================================================
35 
36 
37 class psCelClient;
38 class MsgHandler;
39 class MsgEntry;
40 class pawsGroupWindow;
41 class pawsPetStatWindow;
42 class GEMClientActor;
43 
48 {
49 public:
50  psClientDR();
51  virtual ~psClientDR();
52 
53  bool Initialize(iObjectRegistry* object_reg, psCelClient* celbase, MsgHandler* msghandler );
54 
56 
57  virtual void HandleMessage(MsgEntry* me);
58 
59  csStringHashReversible * GetMsgStrings() { return msgstrings; }
60  bool GotStrings() {return gotStrings;}
61 
63  void ResetMsgStrings();
64 
69 
70 protected:
71 
72  bool gotStrings;
73 
75  csRef<MsgHandler> msghandler;
76 
77  csString last_sector;
78  iObjectRegistry* object_reg;
79 
81 
82  csStringHashReversible* msgstrings;
83 
84 private:
85  void HandleOverride( MsgEntry* me );
86  void HandleStrings( MsgEntry* me );
87  void HandleStatsUpdate( MsgEntry* me );
88  void HandleDeadReckon( MsgEntry* me );
89  void HandleForcePosition(MsgEntry *me);
90  void HandleSequence( MsgEntry* me );
91 };
92 
93 #endif
94 
This is a player or another &#39;alive&#39; entity on the client.
Definition: pscelclient.h:554
pawsGroupWindow * groupWindow
Definition: psclientdr.h:80
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
csStringHashReversible * msgstrings
Definition: psclientdr.h:82
csString last_sector
Definition: psclientdr.h:77
Client version of the Cel Manager Requests world loading.
Definition: pscelclient.h:108
Manages dead reckoning, char position and updates.
Definition: psclientdr.h:47
iObjectRegistry * object_reg
Definition: psclientdr.h:78
virtual ~psClientDR()
bool Initialize(iObjectRegistry *object_reg, psCelClient *celbase, MsgHandler *msghandler)
bool gotStrings
Definition: psclientdr.h:72
This window shows the current members that are in your group.
virtual void HandleMessage(MsgEntry *me)
void ResetMsgStrings()
A window similar to the one of the player with all details of your pet stats/skill.
This class is the client&#39;s and server&#39;s main interface for either sending network messages out or get...
Definition: msghandler.h:106
bool GotStrings()
Definition: psclientdr.h:60
void CheckDeadReckoningUpdate()
A gemObject is any solid, graphical object visible in PS with normal physics and normal collision det...
Definition: gem.h:314
void HandleDeath(GEMClientActor *gemObject)
Make sure DR data stopped on death.
csRef< MsgHandler > msghandler
Definition: psclientdr.h:75
void CheckSectorCrossing(GEMClientActor *actor)
csStringHashReversible * GetMsgStrings()
Definition: psclientdr.h:59
psCelClient * celclient
Definition: psclientdr.h:74