X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FEffects%2FGravity.h;h=146d787ecc17f25e4eb536e602ef00cf877a64ec;hb=5e0713e5967be038b1b0cc5f0ffbd0180e3f7099;hp=ac20d495464cfb90d413826509862051b8925e3f;hpb=2c18685d7e87c72562bdbeb01b7372748d9927a3;p=physics.git diff --git a/src/Effects/Gravity.h b/src/Effects/Gravity.h index ac20d49..146d787 100644 --- a/src/Effects/Gravity.h +++ b/src/Effects/Gravity.h @@ -1,18 +1,37 @@ +/* + * 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 GRAVITY_H #define GRAVITY_H -#include "../Vector2.h" +#include +using namespace bear; + #include "Effect.h" + /// ***** Header Class ***** + class Gravity: public Effect { public: Gravity(); ~Gravity(); - Vector2 positionDelta(const PhysicsEntity*, float) const; - Vector2 velocityDelta(const PhysicsEntity*, float) const; Vector2 forceDelta(const PhysicsEntity*, float) const; };