Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Player.hpp
Go to the documentation of this file.
1 
11 #ifndef RECAST_SERVER_PLAYER_H
12 #define RECAST_SERVER_PLAYER_H
13 
14 #include "Point.hpp"
15 
19 struct Player {
20 public:
21  Player() : location(Point(0, 0, 0)) {};
22 
23  Player(Point location) : location(location) {};
24 
25  int id;
26  int userId;
27 
28  const double &getPosX() const { return location.x; }
29  void setPosX(double x) { location.x = x; }
30  const double &getPosY() const { return location.y; }
31  void setPosY(double y) { location.y = y; }
32  const double &getPosZ() const { return location.z; }
33  void setPosZ(double z) { location.z = z; }
34  const Point &getPoint() { return location; }
35 private:
36  Point location;
37 };
38 
39 
40 #endif //RECAST_SERVER_PLAYER_H
void setPosY(double y)
Definition: Player.hpp:31
Player()
Definition: Player.hpp:21
const double & getPosX() const
Definition: Player.hpp:28
const double & getPosY() const
Definition: Player.hpp:30
Just point.
Definition: Point.hpp:9
double y
Definition: Point.hpp:11
void setPosX(double x)
Definition: Player.hpp:29
const Point & getPoint()
Definition: Player.hpp:34
int id
Definition: Player.hpp:23
double x
Definition: Point.hpp:10
void setPosZ(double z)
Definition: Player.hpp:33
Player(Point location)
Definition: Player.hpp:23
double z
Definition: Point.hpp:12
const double & getPosZ() const
Definition: Player.hpp:32
int userId
Definition: Player.hpp:26
Player class. XP, Life points and other.
Definition: Player.hpp:19