123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #pragma once
- #include "GameObject.h"
- #include "Spieler.h"
- enum GeschossTyp
- {
- GESCHOSS_PFEIL,
- GESCHOSS_KUGEL,
- GESCHOSS_DRACHENAUGE,
- GESCHOSS_FEUERBALL
- };
- class Geschoss : public GameObject
- {
- private:
- float speed;
- Richtung richtung;
- Spieler *besitzer;
- GeschossTyp typ;
- int tunnelBenutzt;
- bool alive;
- int umgelenkt;
- int geschosseGetroffen;
- public:
- Geschoss( float speed, GeschossTyp typ, Richtung r, int x, int y, Spieler *besitzer );
- ~Geschoss();
- void tick( double zeit );
- };
- class FeuerballTreffer : public GameObject
- {
- private:
- Spieler *besitzer;
- float timeLeft;
- public:
- FeuerballTreffer( int x, int y, Spieler *besitzer, int maxZeit );
- ~FeuerballTreffer();
- void tick( double zeit );
- };
|