Orxonox  0.0.5 Codename: Arcturus
JumpCenterpoint.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  * Fabien Vultier
24  * Co-authors:
25  * ...
26  *
27  */
28 
29 #ifndef _JumpCenterpoint_H__
30 #define _JumpCenterpoint_H__
31 
32 #include "jump/JumpPrereqs.h"
34 
35 namespace orxonox
36 {
37 
43  {
44  public:
45  JumpCenterpoint(Context* context);
46  virtual ~JumpCenterpoint() {}
47  virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
48  void setPlatformStaticTemplate(const std::string& balltemplate)
49  { this->platformStaticTemplate_ = balltemplate; }
51  { return this->platformStaticTemplate_; }
52  void setPlatformHMoveTemplate(const std::string& balltemplate)
53  { this->platformHMoveTemplate_ = balltemplate; }
55  { return this->platformHMoveTemplate_; }
56  void setPlatformVMoveTemplate(const std::string& balltemplate)
57  { this->platformVMoveTemplate_ = balltemplate; }
59  { return this->platformVMoveTemplate_; }
60  void setPlatformDisappearTemplate(const std::string& balltemplate)
61  { this->platformDisappearTemplate_ = balltemplate; }
63  { return this->platformDisappearTemplate_; }
64  void setPlatformTimerTemplate(const std::string& balltemplate)
65  { this->platformTimerTemplate_ = balltemplate; }
67  { return this->platformTimerTemplate_; }
68  void setPlatformFakeTemplate(const std::string& balltemplate)
69  { this->platformFakeTemplate_ = balltemplate; }
71  { return this->platformFakeTemplate_; }
72  void setProjectileTemplate(const std::string& newTemplate)
73  { this->projectileTemplate_ = newTemplate; }
75  { return this->projectileTemplate_; }
76  void setSpringTemplate(const std::string& newTemplate)
77  { this->springTemplate_ = newTemplate; }
79  { return this->springTemplate_; }
80  void setRocketTemplate(const std::string& newTemplate)
81  { this->rocketTemplate_ = newTemplate; }
83  { return this->rocketTemplate_; }
84  void setPropellerTemplate(const std::string& newTemplate)
85  { this->propellerTemplate_ = newTemplate; }
87  { return this->propellerTemplate_; }
88  void setBootsTemplate(const std::string& newTemplate)
89  { this->bootsTemplate_ = newTemplate; }
91  { return this->bootsTemplate_; }
92  void setShieldTemplate(const std::string& newTemplate)
93  { this->shieldTemplate_ = newTemplate; }
95  { return this->shieldTemplate_; }
96  void setFigureTemplate(const std::string& newTemplate)
97  { this->figureTemplate_ = newTemplate; }
99  { return this->figureTemplate_; }
100  void setEnemy1Template(const std::string& newTemplate)
101  { this->enemy1Template_ = newTemplate; }
103  { return this->enemy1Template_; }
104  void setEnemy2Template(const std::string& newTemplate)
105  { this->enemy2Template_ = newTemplate; }
107  { return this->enemy2Template_; }
108  void setEnemy3Template(const std::string& newTemplate)
109  { this->enemy3Template_ = newTemplate; }
111  { return this->enemy3Template_; }
112  void setEnemy4Template(const std::string& newTemplate)
113  { this->enemy4Template_ = newTemplate; }
115  { return this->enemy4Template_; }
116  void setFieldDimension(const Vector2& dimension)
117  { this->width_ = dimension.x; this->height_ = dimension.y; }
118  Vector2 getFieldDimension() const
119  { return Vector2(this->width_, this->height_); }
120  void setSectionLength(const float sectionLength)
121  { this->sectionLength_ = sectionLength; }
122  float getSectionLength() const
123  { return sectionLength_; }
124  void setPlatformSpeed(const float platformSpeed)
125  { this->platformSpeed_ = platformSpeed; }
126  float getPlatformSpeed() const
127  { return platformSpeed_; }
128  void setCameraOffset(const float cameraOffset)
129  { this->cameraOffset_ = cameraOffset; }
130  float getCameraOffset() const
131  { return cameraOffset_; }
132  private:
133  void checkGametype();
151  float width_;
152  float height_;
156  };
157 }
158 
159 #endif /* _JumpCenterpoint_H__ */
void setPlatformStaticTemplate(const std::string &balltemplate)
Definition: JumpCenterpoint.h:48
void setBootsTemplate(const std::string &newTemplate)
Definition: JumpCenterpoint.h:88
float cameraOffset_
Definition: JumpCenterpoint.h:155
void setSpringTemplate(const std::string &newTemplate)
Definition: JumpCenterpoint.h:76
#define _JumpExport
Definition: JumpPrereqs.h:60
void setPropellerTemplate(const std::string &newTemplate)
Definition: JumpCenterpoint.h:84
The StaticEntity is the simplest derivative of the orxonox::WorldEntity class.
Definition: StaticEntity.h:50
std::string bootsTemplate_
Definition: JumpCenterpoint.h:144
const std::string & getRocketTemplate() const
Definition: JumpCenterpoint.h:82
void setEnemy2Template(const std::string &newTemplate)
Definition: JumpCenterpoint.h:104
std::string enemy1Template_
Definition: JumpCenterpoint.h:147
Vector2 getFieldDimension() const
Definition: JumpCenterpoint.h:118
void setSectionLength(const float sectionLength)
Definition: JumpCenterpoint.h:120
const std::string & getEnemy4Template() const
Definition: JumpCenterpoint.h:114
void setFieldDimension(const Vector2 &dimension)
Definition: JumpCenterpoint.h:116
const std::string & getPlatformTimerTemplate() const
Definition: JumpCenterpoint.h:66
std::string platformVMoveTemplate_
Definition: JumpCenterpoint.h:136
::std::string string
Definition: gtest-port.h:756
std::string shieldTemplate_
Definition: JumpCenterpoint.h:145
std::string enemy4Template_
Definition: JumpCenterpoint.h:150
std::string platformTimerTemplate_
Definition: JumpCenterpoint.h:138
std::string platformFakeTemplate_
Definition: JumpCenterpoint.h:139
virtual ~JumpCenterpoint()
Definition: JumpCenterpoint.h:46
float height_
Definition: JumpCenterpoint.h:152
void setPlatformFakeTemplate(const std::string &balltemplate)
Definition: JumpCenterpoint.h:68
const std::string & getPlatformDisappearTemplate() const
Definition: JumpCenterpoint.h:62
std::string figureTemplate_
Definition: JumpCenterpoint.h:146
float platformSpeed_
Definition: JumpCenterpoint.h:154
std::string platformHMoveTemplate_
Definition: JumpCenterpoint.h:135
std::string springTemplate_
Definition: JumpCenterpoint.h:141
void setEnemy3Template(const std::string &newTemplate)
Definition: JumpCenterpoint.h:108
void setPlatformDisappearTemplate(const std::string &balltemplate)
Definition: JumpCenterpoint.h:60
const std::string & getEnemy2Template() const
Definition: JumpCenterpoint.h:106
void setEnemy4Template(const std::string &newTemplate)
Definition: JumpCenterpoint.h:112
Shared library macros, enums, constants and forward declarations for the jump module ...
float sectionLength_
Definition: JumpCenterpoint.h:153
xmlelement
Definition: Super.h:519
std::string projectileTemplate_
Definition: JumpCenterpoint.h:140
void setPlatformHMoveTemplate(const std::string &balltemplate)
Definition: JumpCenterpoint.h:52
void setPlatformSpeed(const float platformSpeed)
Definition: JumpCenterpoint.h:124
const std::string & getEnemy3Template() const
Definition: JumpCenterpoint.h:110
const std::string & getBootsTemplate() const
Definition: JumpCenterpoint.h:90
const std::string & getPlatformFakeTemplate() const
Definition: JumpCenterpoint.h:70
const std::string & getShieldTemplate() const
Definition: JumpCenterpoint.h:94
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
const std::string & getSpringTemplate() const
Definition: JumpCenterpoint.h:78
void setShieldTemplate(const std::string &newTemplate)
Definition: JumpCenterpoint.h:92
float width_
Definition: JumpCenterpoint.h:151
Mode
Definition: CorePrereqs.h:102
void setCameraOffset(const float cameraOffset)
Definition: JumpCenterpoint.h:128
void setRocketTemplate(const std::string &newTemplate)
Definition: JumpCenterpoint.h:80
void setProjectileTemplate(const std::string &newTemplate)
Definition: JumpCenterpoint.h:72
const std::string & getPlatformStaticTemplate() const
Definition: JumpCenterpoint.h:50
const std::string & getPropellerTemplate() const
Definition: JumpCenterpoint.h:86
Definition: Context.h:45
void setEnemy1Template(const std::string &newTemplate)
Definition: JumpCenterpoint.h:100
std::string platformDisappearTemplate_
Definition: JumpCenterpoint.h:137
void setFigureTemplate(const std::string &newTemplate)
Definition: JumpCenterpoint.h:96
void setPlatformTimerTemplate(const std::string &balltemplate)
Definition: JumpCenterpoint.h:64
std::string platformStaticTemplate_
Definition: JumpCenterpoint.h:134
std::string enemy2Template_
Definition: JumpCenterpoint.h:148
float getSectionLength() const
Definition: JumpCenterpoint.h:122
float getCameraOffset() const
Definition: JumpCenterpoint.h:130
std::string rocketTemplate_
Definition: JumpCenterpoint.h:142
std::string propellerTemplate_
Definition: JumpCenterpoint.h:143
const std::string & getPlatformVMoveTemplate() const
Definition: JumpCenterpoint.h:58
const std::string & getFigureTemplate() const
Definition: JumpCenterpoint.h:98
const std::string & getPlatformHMoveTemplate() const
Definition: JumpCenterpoint.h:54
const std::string & getEnemy1Template() const
Definition: JumpCenterpoint.h:102
std::string enemy3Template_
Definition: JumpCenterpoint.h:149
const std::string & getProjectileTemplate() const
Definition: JumpCenterpoint.h:74
void setPlatformVMoveTemplate(const std::string &balltemplate)
Definition: JumpCenterpoint.h:56
float getPlatformSpeed() const
Definition: JumpCenterpoint.h:126
The JumpCenterpoint is a StaticEntity which represents the level of the minigame. ...
Definition: JumpCenterpoint.h:42