Planeshift
psserverdr.h
Go to the documentation of this file.
1
/*
2
* psclientdr.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
25
//=============================================================================
26
// Project Includes
27
//=============================================================================
28
29
//=============================================================================
30
// Local Includes
31
//=============================================================================
32
#include "
msgmanager.h
"
33
34
class
psCelClient
;
35
class
MsgEntry
;
36
class
gemActor
;
37
class
MathScript
;
38
class
PaladinJr
;
39
class
CacheManager
;
40
class
EntityManager
;
41
42
class
psServerDR
:
public
MessageManager
<psServerDR>
43
{
44
public
:
45
psServerDR
(
CacheManager
* cachemanager,
EntityManager
* entitymanager);
46
virtual
~psServerDR
();
47
48
bool
Initialize
();
49
50
void
SendPersist
();
51
52
protected
:
53
54
void
HandleDeadReckoning
(
MsgEntry
* me,
Client
* client);
55
57
void
HandleFallDamage
(
gemActor
* actor,
int
clientnum,
const
csVector3 &pos, iSector* sector);
58
void
ResetPos
(
gemActor
* actor);
59
60
MathScript
*
calc_damage
;
61
PaladinJr
*
paladin
;
62
63
CacheManager
*
cacheManager
;
64
EntityManager
*
entityManager
;
65
};
66
67
#endif
68
EntityManager
Manages CEL entities on the server.
Definition:
entitymanager.h:77
psServerDR::psServerDR
psServerDR(CacheManager *cachemanager, EntityManager *entitymanager)
psServerDR::Initialize
bool Initialize()
psServerDR::calc_damage
MathScript * calc_damage
Definition:
psserverdr.h:60
psServerDR::SendPersist
void SendPersist()
MathScript
A MathScript is a mini-program to run.
Definition:
mathscript.h:442
psServerDR::ResetPos
void ResetPos(gemActor *actor)
msgmanager.h
PaladinJr
Definition:
paladinjr.h:34
MsgEntry
The structure of 1 queue entry (pointer to a message)
Definition:
message.h:143
psServerDR::paladin
PaladinJr * paladin
Definition:
psserverdr.h:61
psCelClient
Client version of the Cel Manager Requests world loading.
Definition:
pscelclient.h:108
gemActor
Any semi-autonomous object, either a player or an NPC.
Definition:
gem.h:1170
psServerDR
Definition:
psserverdr.h:42
Client
This class collects data of a netclient.
Definition:
client.h:95
psServerDR::HandleDeadReckoning
void HandleDeadReckoning(MsgEntry *me, Client *client)
psServerDR::HandleFallDamage
void HandleFallDamage(gemActor *actor, int clientnum, const csVector3 &pos, iSector *sector)
If the entity was falling and stops falling, this is called.
CacheManager
This class manages the caching of data that is unchanging during server operation.
Definition:
cachemanager.h:234
psServerDR::~psServerDR
virtual ~psServerDR()
psServerDR::entityManager
EntityManager * entityManager
Definition:
psserverdr.h:64
psServerDR::cacheManager
CacheManager * cacheManager
Definition:
psserverdr.h:63
MessageManager
Provides a manager to facilitate subscriptions.
Definition:
msgmanager.h:106
server
psserverdr.h
Generated on Sat Jun 19 2021 05:00:33 for Planeshift by
1.8.11