Spieler.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #pragma once
  2. #include "Team.h"
  3. #include "Gegenstand.h"
  4. #include "SSKlient.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. Klient *klient;
  21. int accountId;
  22. int spielerNummer;
  23. Team *team;
  24. int style;
  25. int maxWiederbelebungsZeit;
  26. float wiederbelebungsZeit;
  27. GegenstandTyp zuletztAufgehoben;
  28. GegenstandTyp zuletztAktiviert;
  29. int leben;
  30. int maxLeben;
  31. int level;
  32. int erfahrung;
  33. int maxErfahrung;
  34. int spawnX;
  35. int spawnY;
  36. int laufTempo;
  37. int geschossTempo;
  38. int armor;
  39. int schadensBonus;
  40. int lebensraub;
  41. int lebensRegeneration;
  42. int abklingZeitVerringerung;
  43. int color;
  44. float gegenstandAbklingzeit[ ITEMANZAHL ];
  45. int kills;
  46. int tode;
  47. int treffer;
  48. int getroffen;
  49. int schadenGenommen;
  50. int schadenGemacht;
  51. int lebenGeheilt;
  52. int erhalteneErfahrung;
  53. int itemsAufgehoben;
  54. int itemsVerwendet;
  55. int tunnelBenutzt;
  56. int schalterAktiviert;
  57. int geschosseGeschossen;
  58. public:
  59. Spieler( int id, Team *team, int spawnX, int spawnY, int breite, int height,
  60. int farbe, int leben, int erfahrung, int laufTempo, int geschossTempo,
  61. int armor, int schadenBonus, int lebensraub, int lebensReg,
  62. int abkVerringerung, int level );
  63. ~Spieler();
  64. void setTeam( Team *team );
  65. void setAccount( int id );
  66. void setKlient( Klient *klient );
  67. Klient *zKlient() const;
  68. int getSpielerNummer() const;
  69. Team *zTeam() const;
  70. int getFarbe() const;
  71. int getAccountId() const;
  72. int getPunkte() const;
  73. };