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 
62 
65 };
66 
67 #endif
68 
Manages CEL entities on the server.
Definition: entitymanager.h:77
psServerDR(CacheManager *cachemanager, EntityManager *entitymanager)
bool Initialize()
MathScript * calc_damage
Definition: psserverdr.h:60
void SendPersist()
A MathScript is a mini-program to run.
Definition: mathscript.h:442
void ResetPos(gemActor *actor)
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
PaladinJr * paladin
Definition: psserverdr.h:61
Client version of the Cel Manager Requests world loading.
Definition: pscelclient.h:108
Any semi-autonomous object, either a player or an NPC.
Definition: gem.h:1170
This class collects data of a netclient.
Definition: client.h:95
void HandleDeadReckoning(MsgEntry *me, Client *client)
void HandleFallDamage(gemActor *actor, int clientnum, const csVector3 &pos, iSector *sector)
If the entity was falling and stops falling, this is called.
This class manages the caching of data that is unchanging during server operation.
Definition: cachemanager.h:234
virtual ~psServerDR()
EntityManager * entityManager
Definition: psserverdr.h:64
CacheManager * cacheManager
Definition: psserverdr.h:63
Provides a manager to facilitate subscriptions.
Definition: msgmanager.h:106