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
47
class
psClientDR
:
public
psClientNetSubscriber
48
{
49
public
:
50
psClientDR
();
51
virtual
~psClientDR
();
52
53
bool
Initialize
(iObjectRegistry*
object_reg
,
psCelClient
* celbase,
MsgHandler
*
msghandler
);
54
55
void
CheckDeadReckoningUpdate
();
56
57
virtual
void
HandleMessage
(
MsgEntry
* me);
58
59
csStringHashReversible *
GetMsgStrings
() {
return
msgstrings
; }
60
bool
GotStrings
() {
return
gotStrings
;}
61
62
void
CheckSectorCrossing
(
GEMClientActor
* actor);
63
void
ResetMsgStrings
();
64
68
void
HandleDeath
(
GEMClientActor
*
gemObject
);
69
70
protected
:
71
72
bool
gotStrings
;
73
74
psCelClient
*
celclient
;
75
csRef<MsgHandler>
msghandler
;
76
77
csString
last_sector
;
78
iObjectRegistry*
object_reg
;
79
80
pawsGroupWindow
*
groupWindow
;
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
GEMClientActor
This is a player or another 'alive' entity on the client.
Definition:
pscelclient.h:554
psClientDR::psClientDR
psClientDR()
psClientDR::groupWindow
pawsGroupWindow * groupWindow
Definition:
psclientdr.h:80
MsgEntry
The structure of 1 queue entry (pointer to a message)
Definition:
message.h:143
psClientDR::msgstrings
csStringHashReversible * msgstrings
Definition:
psclientdr.h:82
cmdbase.h
psClientDR::last_sector
csString last_sector
Definition:
psclientdr.h:77
psCelClient
Client version of the Cel Manager Requests world loading.
Definition:
pscelclient.h:108
psClientDR
Manages dead reckoning, char position and updates.
Definition:
psclientdr.h:47
psClientDR::object_reg
iObjectRegistry * object_reg
Definition:
psclientdr.h:78
psClientDR::~psClientDR
virtual ~psClientDR()
psClientDR::Initialize
bool Initialize(iObjectRegistry *object_reg, psCelClient *celbase, MsgHandler *msghandler)
psClientDR::gotStrings
bool gotStrings
Definition:
psclientdr.h:72
pawsGroupWindow
This window shows the current members that are in your group.
Definition:
pawsgroupwindow.h:37
psClientDR::HandleMessage
virtual void HandleMessage(MsgEntry *me)
psClientDR::ResetMsgStrings
void ResetMsgStrings()
pawsPetStatWindow
A window similar to the one of the player with all details of your pet stats/skill.
Definition:
pawspetstatwindow.h:37
MsgHandler
This class is the client's and server's main interface for either sending network messages out or get...
Definition:
msghandler.h:106
psClientDR::GotStrings
bool GotStrings()
Definition:
psclientdr.h:60
psClientDR::CheckDeadReckoningUpdate
void CheckDeadReckoningUpdate()
gemObject
A gemObject is any solid, graphical object visible in PS with normal physics and normal collision det...
Definition:
gem.h:314
psClientDR::HandleDeath
void HandleDeath(GEMClientActor *gemObject)
Make sure DR data stopped on death.
psClientDR::msghandler
csRef< MsgHandler > msghandler
Definition:
psclientdr.h:75
psClientDR::CheckSectorCrossing
void CheckSectorCrossing(GEMClientActor *actor)
psClientNetSubscriber
Definition:
cmdbase.h:67
psClientDR::GetMsgStrings
csStringHashReversible * GetMsgStrings()
Definition:
psclientdr.h:59
psClientDR::celclient
psCelClient * celclient
Definition:
psclientdr.h:74
client
psclientdr.h
Generated on Sat Jun 19 2021 05:00:22 for Planeshift by
1.8.11