Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/HUD_HS16/src/orxonox/worldentities/ExplosionPart.h @ 12073

Last change on this file since 12073 was 11071, checked in by landauf, 9 years ago

merged branch cpp11_v3 back to trunk

  • Property svn:eol-style set to native
File size: 3.0 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 *      Vedat Aydin
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29#ifndef _ExplosionPart_H__
30#define _ExplosionPart_H__
31
32#include "OrxonoxPrereqs.h"
33
34#include "graphics/Model.h"
35#include "tools/ParticleInterface.h"
36#include "MovableEntity.h"
37#include "graphics/ParticleSpawner.h"
38#include "core/CoreIncludes.h"
39#include "core/GameMode.h"
40#include "util/Exception.h"
41#include "core/command/Executor.h"
42#include "Scene.h"
43#include "tools/Timer.h"
44
45
46 namespace orxonox
47{
48    class _OrxonoxExport ExplosionPart : public MovableEntity
49    {
50        public:
51            ExplosionPart(Context* context);
52            ~ExplosionPart();
53            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
54
55            void Explode();
56            void stop();
57            void ActuallyExplode();
58
59            void setMesh(const std::string& newString);
60            std::string& getMesh();
61            void setEffect1(const std::string& newString);
62            std::string& getEffect1();
63            void setEffect2(const std::string& newString);
64            std::string& getEffect2();
65            void setMinSpeed(float speed);
66            float getMinSpeed();
67            void setMaxSpeed(float speed);
68            float getMaxSpeed();
69            void setOffset(Vector3 newVector);
70            Vector3 getOffset();
71            void setDirection(Vector3 newDirection);
72            Vector3 getDirection();
73            void setAngle(float newAgnle);
74            float getAngle();
75            void setDelay(float newDelay);
76            float getDelay();
77         
78
79        private:
80
81            bool bStop_;
82            LODParticle::Value LOD_;
83
84
85            Model* model_;
86            ParticleInterface* effect1Particle_;
87            ParticleInterface* effect2Particle_;
88
89
90            float minSpeed_;
91            float maxSpeed_;
92            std::string mesh_;
93            std::string effect1_;
94            std::string effect2_;
95            Vector3 posOffset_;
96            Vector3 direction_;
97            float angle_;
98            float delay_;
99
100            MovableEntity* explosionEntity_;
101
102            Timer destroyTimer_;
103
104
105
106    };
107}
108
109#endif /* _ExplosionPart_H__ */
Note: See TracBrowser for help on using the repository browser.