1 #include <math.h>
2 
3 
4 #include "globals.h"
5 
6 
7 class ServerObject {
8 
9 public:
10   struct Point Position;
11   struct Point Velocity;
12   struct Point Rotation;
13   float RotationMatrix[3][3];
14   int ObjectType;
15   float ObjectSize;
16   float ObjectMass;
17   int AliveTime;
18   int GravityStrength;
19   int Weight;
20   int HitPoints;
21   int PlayerNum;
22   int PlayersHit[MAX_PLAYERS];
23 
24   ServerObject(struct Point Pos, struct Point Vel, struct Point Rot,
25                int Type, float Size, float Mass, int playernum=0);
26 
27   ~ServerObject();
28 
29   void CalcRotationMatrix();
30 
31   void UpdatePosition();
32 
33   void UpdateRotation();
34 };
35 
36 
37 extern ServerObject *ServerObjects[MAX_OBJECTS];
38