Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pch/src/orxonox/objects/worldentities/ForceField.h @ 3127

Last change on this file since 3127 was 3064, checked in by Aurelian, 15 years ago

Final commit of gametype asteroids for presentation. everything working. New gadget: Radar displays the next checkpoint to reach!

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
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
36namespace orxonox
37{
38    class _OrxonoxExport ForceField : public StaticEntity, public Tickable
39    {
40    public:
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);
45
46        inline void setVelocity(float vel)
47            { this->velocity_ = vel; }
48   
49        inline float getVelocity()
50            { return velocity_; }
51   
52        inline void setDiameter(float diam)
53            { this->diameter_ = diam; }
54
55        inline float getDiameter()
56            { return diameter_; }
57 
58        inline void setLength(float l)
59            { this->length_ = l; }
60
61        inline float getLength()
62            { return length_; }
63
64    private:
65        float velocity_;
66        float diameter_;
67        float length_;
68  };
69}
70
71#endif
72
Note: See TracBrowser for help on using the repository browser.