12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #pragma once
- #include "GameObject.h"
- #include "Resource.h"
- enum GegenstandTyp
- {
- KEIN_GEGENSTAND,
- PFEIL,
- LEBEN,
- SCHILD,
- SCHUH,
- GEIST,
- KUGEL,
- ROLLE,
- STURM,
- DRACHENAUGE,
- FEUERBALL,
- ENTERHAKEN,
- MINE,
- RWEISHEIT,
- RSTRENGTH,
- RBOSHEIT,
- RLEBEN,
- RTEMPO,
- ITEMANZAHL
- };
- bool consumable( GegenstandTyp typ );
- float abklingzeit( GegenstandTyp typ );
- bool storable( GegenstandTyp typ );
- bool brauchtRichtung( GegenstandTyp typ );
- class GegenstandTypVar : public Variable
- {
- private:
- GegenstandTyp value;
- public:
- GegenstandTypVar( GegenstandTyp value );
- void setValue( GegenstandTyp value );
- GegenstandTyp getValue() const;
- };
- class Gegenstand : public GameObject
- {
- private:
- GegenstandTyp typ;
- int id;
- public:
- Gegenstand( ResourceRegistry *zResources, int id, GegenstandTyp typ, int x = 0, int y = 0, int w = 50, int h = 50 );
- int getId() const;
- GegenstandTyp getTyp() const;
- };
|