X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FEffects%2FEffect.h;h=654c2a2dc03af1c6dba12280ee9aa63dcac53112;hb=5e0713e5967be038b1b0cc5f0ffbd0180e3f7099;hp=963ecb25526ea73e7554c90c85f7d42c73b9d3e6;hpb=6aad402ae2635bb96bd5a67e6054c8e65ea8df68;p=physics.git diff --git a/src/Effects/Effect.h b/src/Effects/Effect.h index 963ecb2..654c2a2 100644 --- a/src/Effects/Effect.h +++ b/src/Effects/Effect.h @@ -1,12 +1,32 @@ +/* + * Copyright (C) 2008 Patrik Gornicz, Gornicz_P (at) hotmail (dot) com. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef EFFECT_H #define EFFECT_H -#include "../Vector2.h" +#include +using namespace bear; + -//#include "../Entities/PhysicsEntity.h" +// Mutual headers ... class PhysicsEntity; /// ***** Header Class ***** + class Effect { protected: @@ -15,9 +35,9 @@ class Effect public: virtual ~Effect(); - virtual Vector2 positionDelta(const PhysicsEntity*, float) const = 0; - virtual Vector2 velocityDelta(const PhysicsEntity*, float) const = 0; - virtual Vector2 forceDelta(const PhysicsEntity*, float) const = 0; + virtual Vector2 positionDelta(const PhysicsEntity*, float) const; + virtual Vector2 velocityDelta(const PhysicsEntity*, float) const; + virtual Vector2 forceDelta(const PhysicsEntity*, float) const; }; #endif // EFFECT_H