12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- #pragma once
- #include "Team.h"
- #include "Gegenstand.h"
- #include "SSKlient.h"
- class Spieler : public GameObject
- {
- public:
- class Style
- {
- const static int MOVES_RIGHT = 1;
- const static int MOVES_LEFT = 2;
- const static int MOVES_BOTTOM = 4;
- const static int MOVES_TOP = 8;
- const static int AM_LEBEN = 0x10;
- const static int UNSICHTBAR = 0x20;
- const static int ENTERHAKEN_AKTIV = 0x40;
- const static int ENTERHAKEN_UNVERWUNDBAR = 0x40;
- };
- private:
- Klient *klient;
- int accountId;
- int spielerNummer;
- Team *team;
- int style;
- int maxWiederbelebungsZeit;
- float wiederbelebungsZeit;
- GegenstandTyp zuletztAufgehoben;
- GegenstandTyp zuletztAktiviert;
- int leben;
- int maxLeben;
- int level;
- int erfahrung;
- int maxErfahrung;
- int spawnX;
- int spawnY;
- int laufTempo;
- int geschossTempo;
- int armor;
- int schadensBonus;
- int lebensraub;
- int lebensRegeneration;
- int abklingZeitVerringerung;
- int color;
- float gegenstandAbklingzeit[ ITEMANZAHL ];
- int kills;
- int tode;
- int treffer;
- int getroffen;
- int schadenGenommen;
- int schadenGemacht;
- int lebenGeheilt;
- int erhalteneErfahrung;
- int itemsAufgehoben;
- int itemsVerwendet;
- int tunnelBenutzt;
- int schalterAktiviert;
- int geschosseGeschossen;
- public:
- Spieler( int id, Team *team, int spawnX, int spawnY, int breite, int height,
- int farbe, int leben, int erfahrung, int laufTempo, int geschossTempo,
- int armor, int schadenBonus, int lebensraub, int lebensReg,
- int abkVerringerung, int level );
- ~Spieler();
- void setTeam( Team *team );
- void setAccount( int id );
- void setKlient( Klient *klient );
- Klient *zKlient() const;
- int getSpielerNummer() const;
- Team *zTeam() const;
- int getFarbe() const;
- int getAccountId() const;
- int getPunkte() const;
- };
|