#ifndef Laser_H #define Laser_H #include #include #include using namespace Framework; class Karte; class Laser : public Object2D { private: struct SaveData { Vertex pos; Vertex speed; double intensity; }; int id; double intensität; double startIntensität; int tf; int sNum; SaveData last; // privat char getOutCode( Punkt& p, Bild &zrObj ) const; public: // Konstruktor Laser( int id, Vertex pos, Vertex speed, int sNum, double intensität, int tf ); // nicht constant Rect2< float > getBoundingBox() const; bool tick( const WeltInfo &info, double tv ) override; void render( Mat3< float > &kamMat, Bild &zRObj, const char *kamName ) override; void save(); void load(); // constant int getId() const; int getSpieler() const; double getIntensität( Vertex targetSpeed ) const; }; #endif