#include "Effect.h" Effect::Effect( Spieler *zSpieler, float maxTime ) : ReferenceCounter() { this->zSpieler = zSpieler; timeLeft = maxTime; } Effect::~Effect() {} bool Effect::tick( double time, Spiel *zSpiel ) { timeLeft -= (float)time; return timeLeft <= 0; } bool Effect::istSpielerBeweglich( Richtung r ) const { return 1; } bool Effect::istSpielerVerwundbar( Richtung r ) const { return 1; } bool Effect::istSpielerSichtbar( Team *zTeam ) const { return 1; } bool Effect::istIntersectable() const { return 1; } void Effect::move( Richtung r, double time ) {} bool Effect::istGegenstandErlaubt( GegenstandTyp typ ) const { return 1; }