Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.63 KB | None | 0 0
  1. //  File:   player.h
  2. //
  3. //Includes
  4. #include "vector.h"
  5. #include "inventory.h"
  6. #include "physics.h"
  7. //Definitions
  8.  
  9. /////////////////////////////////////////////////
  10.  
  11. typedef struct{
  12.     int head;
  13.     int chest;
  14.     int l_arm;
  15.     int r_arm;
  16.     int l_leg;
  17.     int r_leg;
  18. }Body;
  19.  
  20. typedef struct{
  21.     unsigned char s;
  22.     unsigned char p;
  23.     unsigned char e;
  24.     unsigned char c;
  25.     unsigned char i;
  26.     unsigned char a;
  27. }Specia;
  28.  
  29. typedef struct{
  30.     //TODO: add skills
  31.     unsigned int x;
  32. }Skills;
  33.  
  34. typedef struct{
  35.     Vector loc;
  36.     Vector rot;
  37.     Physics phys;
  38.     PInventory inv;
  39.  
  40.     Body health;
  41.     Specia stats;
  42.     Skills skills;
  43.     int experience;
  44. }Player;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement