Spieler.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #pragma once
  2. #include "GameObject.h"
  3. #include "Team.h"
  4. #include "Gegenstand.h"
  5. class Spieler : public GameObject
  6. {
  7. public:
  8. class Style
  9. {
  10. const static int MOVES_RIGHT = 1;
  11. const static int MOVES_LEFT = 2;
  12. const static int MOVES_BOTTOM = 4;
  13. const static int MOVES_TOP = 8;
  14. const static int AM_LEBEN = 0x10;
  15. const static int UNSICHTBAR = 0x20;
  16. const static int ENTERHAKEN_AKTIV = 0x40;
  17. const static int ENTERHAKEN_UNVERWUNDBAR = 0x40;
  18. };
  19. private:
  20. int spielerNummer;
  21. Team *team;
  22. int style;
  23. int maxWiederbelebungsZeit;
  24. float wiederbelebungsZeit;
  25. GegenstandTyp zuletztAufgehoben;
  26. GegenstandTyp zuletztAktiviert;
  27. int leben;
  28. int maxLeben;
  29. int level;
  30. int erfahrung;
  31. int maxErfahrung;
  32. int spawnX;
  33. int spawnY;
  34. int laufTempo;
  35. int geschossTempo;
  36. int armor;
  37. int schadensBonus;
  38. int lebensraub;
  39. int lebensregeneration;
  40. int abklingZeitVerringerung;
  41. int color;
  42. float gegenstandAbklingzeit[ ITEMANZAHL ];
  43. int kills;
  44. int tode;
  45. int treffer;
  46. int getroffen;
  47. int schadenGenommen;
  48. int schadenGemacht;
  49. int lebenGeheilt;
  50. int erhalteneErfahrung;
  51. int itemsAufgehoben;
  52. int itemsVerwendet;
  53. int tunnelBenutzt;
  54. int schalterAktiviert;
  55. int geschosseGeschossen;
  56. public:
  57. Spieler( int id, Team *team, int spawnX, int spawnY, int breite, int height );
  58. ~Spieler();
  59. };