Orxonox  0.0.5 Codename: Arcturus
SpicedAsteroidBelt.h
Go to the documentation of this file.
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  * remartin
24  * Co-authors:
25  *
26  */
27 
46 #ifndef _SpicedAsteroidBelt_H__
47 #define _SpicedAsteroidBelt_H__
48 
49 #include "AsteroidMiningPrereqs.h"
50 
51 #include "core/BaseObject.h"
53 
54 namespace orxonox // tolua_export
55 {
56 
57  // tolua_export
59  { // tolua_export
60 
61  public:
62  SpicedAsteroidBelt(Context* context);// This constructor is for XML access only!
63  virtual ~SpicedAsteroidBelt();
64 
65  virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
66  virtual void tick(float dt) override;
67 
68  inline void setCount(float s){this->count = s;}
69  inline float getCount(){return this->count;}
70 
71  inline void setMineralDensity(float d){this->mDensity = d;}
72  inline float getMineralDensity(){return this->mDensity;}
73 
74  inline void setPosition(const Vector3& v){this->position = v;}
75  inline const Vector3& getPosition(){return this->position;}
76 
77  inline void setSegments(int s){this->segments = s;}
78  inline int getSegments(){return this->segments;}
79 
80  inline void setMaxSize(float i){this->maxSize = i;}
81  inline float getMaxSize(){return this->maxSize;}
82 
83  inline void setMinSize(float i){this->minSize = i;}
84  inline float getMinSize(){return this->minSize;}
85 
86  inline void setRadius0(float r0){this->radius0 = r0;}
87  inline float getRadius0(){return this->radius0;}
88 
89  inline void setRadius1(float r1){this->radius1 = r1;}
90  inline float getRadius1(){return this->radius1;}
91 
92  inline void setFog(bool f){this->foggy = f;}
93  inline bool isFoggy(){return this->foggy;}
94 
95  inline void setFogDensity(float fd){this->fogDensity = fd;}
96  inline float getFogDensity(){return this->fogDensity;}
97 
98  inline void setTiltAt(float ta){this->tiltAt = ta;}
99  inline void setTiltBy(float tb){this->tiltBy = tb;}
100  inline float getTiltAt(){return this->tiltAt;}
101  inline float getTiltBy(){return this->tiltBy;}
102 
103 
104  protected:
105 
106  float count;
107  float mDensity;
108 
109  Vector3 position;
110 
111  int segments;
112 
113  float maxSize;
114  float minSize;
115 
116  float radius0;
117  float radius1;
118 
119  bool foggy;
120  float fogDensity;
121 
122  float tiltAt;
123  float tiltBy;
124 
125  private:
126  virtual void create();
127 
128  }; // tolua_export
129 } // tolua_export
130 
131 #endif /* _SpicedAsteroidBelt_H__ */
The BaseObject is the parent of all classes representing an instance in the game. ...
Definition: BaseObject.h:63
float getRadius1()
Definition: SpicedAsteroidBelt.h:90
Vector3 position
Definition: SpicedAsteroidBelt.h:109
float getFogDensity()
Definition: SpicedAsteroidBelt.h:96
float getMinSize()
Definition: SpicedAsteroidBelt.h:84
float mDensity
Approximate commonness of asteroids that yield stuff, value between 0 and 1;.
Definition: SpicedAsteroidBelt.h:107
float getRadius0()
Definition: SpicedAsteroidBelt.h:87
Shared library macros, enums, constants and forward declarations for the AsteroidMining module ...
float getMineralDensity()
Definition: SpicedAsteroidBelt.h:72
Declaration of the Tickable interface.
float tiltBy
angle at z-axis
Definition: SpicedAsteroidBelt.h:123
void setMinSize(float i)
Definition: SpicedAsteroidBelt.h:83
float tiltAt
Orientation: Angle where it gets elevated/lowered the most.
Definition: SpicedAsteroidBelt.h:122
void setFogDensity(float fd)
Definition: SpicedAsteroidBelt.h:95
float getMaxSize()
Definition: SpicedAsteroidBelt.h:81
void setRadius0(float r0)
Definition: SpicedAsteroidBelt.h:86
float maxSize
Most obese asteroid possible.
Definition: SpicedAsteroidBelt.h:113
void setRadius1(float r1)
Definition: SpicedAsteroidBelt.h:89
void setMineralDensity(float d)
Definition: SpicedAsteroidBelt.h:71
bool foggy
Whether there&#39;s fog arount the asteroids.
Definition: SpicedAsteroidBelt.h:119
float fogDensity
Definition: SpicedAsteroidBelt.h:120
float getTiltBy()
Definition: SpicedAsteroidBelt.h:101
Definition: SpicedAsteroidBelt.h:58
xmlelement
Definition: Super.h:519
void setSegments(int s)
Definition: SpicedAsteroidBelt.h:77
const Vector3 & getPosition()
Definition: SpicedAsteroidBelt.h:75
float radius1
Outer radius.
Definition: SpicedAsteroidBelt.h:117
bool isFoggy()
Definition: SpicedAsteroidBelt.h:93
void setPosition(const Vector3 &v)
Definition: SpicedAsteroidBelt.h:74
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
float count
Approximate number of asteroids.
Definition: SpicedAsteroidBelt.h:106
float minSize
Most meagre asteroid possible.
Definition: SpicedAsteroidBelt.h:114
Mode
Definition: CorePrereqs.h:102
Declaration of BaseObject, the base class of all objects in Orxonox.
Definition: Context.h:45
float radius0
Inner radius.
Definition: SpicedAsteroidBelt.h:116
void setCount(float s)
Definition: SpicedAsteroidBelt.h:68
#define _AsteroidMiningExport
Definition: AsteroidMiningPrereqs.h:60
void setFog(bool f)
Definition: SpicedAsteroidBelt.h:92
void setTiltAt(float ta)
Definition: SpicedAsteroidBelt.h:98
int segments
Number of asteroidFields that get generated.
Definition: SpicedAsteroidBelt.h:111
float getTiltAt()
Definition: SpicedAsteroidBelt.h:100
float getCount()
Definition: SpicedAsteroidBelt.h:69
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
int getSegments()
Definition: SpicedAsteroidBelt.h:78
void setMaxSize(float i)
Definition: SpicedAsteroidBelt.h:80
void setTiltBy(float tb)
Definition: SpicedAsteroidBelt.h:99