#pragma once #include "GameObject.h" #include "Resource.h" Resource *zResourceOfItem( GegenstandTyp typ, ResourceRegistry *zResources ); 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; double timeLeft; 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; // gibt 1 zurück, wenn der gegenstand despornt bool tick( double zeit ); GegenstandTyp getTyp() const; };