[2954] | 1 | /* |
---|
| 2 | * ORXONOX - the hottest 3D action shooter ever to exist |
---|
| 3 | * > www.orxonox.net < |
---|
| 4 | * |
---|
| 5 | * |
---|
| 6 | * License notice: |
---|
| 7 | * |
---|
| 8 | * This program is free software; you can redistribute it and/or |
---|
| 9 | * modify it under the terms of the GNU General Public License |
---|
| 10 | * as published by the Free Software Foundation; either version 2 |
---|
| 11 | * of the License, or (at your option) any later version. |
---|
| 12 | * |
---|
| 13 | * This program is distributed in the hope that it will be useful, |
---|
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 16 | * GNU General Public License for more details. |
---|
| 17 | * |
---|
| 18 | * You should have received a copy of the GNU General Public License |
---|
| 19 | * along with this program; if not, write to the Free Software |
---|
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
| 21 | * |
---|
| 22 | * Author: |
---|
| 23 | * Aurelian Jaggi |
---|
| 24 | * Co-authors: |
---|
| 25 | * ... |
---|
| 26 | * |
---|
| 27 | */ |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | #ifndef _ForceField_H__ |
---|
| 31 | #define _ForceField_H__ |
---|
| 32 | |
---|
| 33 | #include "StaticEntity.h" |
---|
| 34 | #include "objects/Tickable.h" |
---|
| 35 | |
---|
| 36 | namespace orxonox |
---|
| 37 | { |
---|
[3064] | 38 | class _OrxonoxExport ForceField : public StaticEntity, public Tickable |
---|
| 39 | { |
---|
[2954] | 40 | public: |
---|
[3064] | 41 | ForceField(BaseObject* creator); |
---|
| 42 | virtual ~ForceField(); |
---|
| 43 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a CheckPoint object through XML. |
---|
| 44 | virtual void tick(float dt); |
---|
[2954] | 45 | |
---|
[3064] | 46 | inline void setVelocity(float vel) |
---|
| 47 | { this->velocity_ = vel; } |
---|
[2954] | 48 | |
---|
[3064] | 49 | inline float getVelocity() |
---|
| 50 | { return velocity_; } |
---|
[2954] | 51 | |
---|
[3064] | 52 | inline void setDiameter(float diam) |
---|
| 53 | { this->diameter_ = diam; } |
---|
[2954] | 54 | |
---|
[3064] | 55 | inline float getDiameter() |
---|
| 56 | { return diameter_; } |
---|
[2954] | 57 | |
---|
[3064] | 58 | inline void setLength(float l) |
---|
| 59 | { this->length_ = l; } |
---|
[2954] | 60 | |
---|
[3064] | 61 | inline float getLength() |
---|
| 62 | { return length_; } |
---|
[2954] | 63 | |
---|
| 64 | private: |
---|
[3064] | 65 | float velocity_; |
---|
| 66 | float diameter_; |
---|
| 67 | float length_; |
---|
[2954] | 68 | }; |
---|
| 69 | } |
---|
| 70 | |
---|
| 71 | #endif |
---|
| 72 | |
---|