Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/orxonox/worldentities/ExplosionPart.h @ 11689

Last change on this file since 11689 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
RevLine 
[10752]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"
[10786]43#include "tools/Timer.h"
[10752]44
45
46 namespace orxonox
47{
48    class _OrxonoxExport ExplosionPart : public MovableEntity
49    {
50        public:
51            ExplosionPart(Context* context);
[10786]52            ~ExplosionPart();
[11071]53            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
54
[10752]55            void Explode();
[10786]56            void stop();
[10837]57            void ActuallyExplode();
[10752]58
59            void setMesh(const std::string& newString);
60            std::string& getMesh();
[10786]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();
[10810]69            void setOffset(Vector3 newVector);
70            Vector3 getOffset();
[10837]71            void setDirection(Vector3 newDirection);
72            Vector3 getDirection();
73            void setAngle(float newAgnle);
74            float getAngle();
75            void setDelay(float newDelay);
76            float getDelay();
[10752]77         
78
79        private:
80
81            bool bStop_;
82            LODParticle::Value LOD_;
83
84
[11025]85            Model* model_;
86            ParticleInterface* effect1Particle_;
[10786]87            ParticleInterface* effect2Particle_;
[10752]88
[10786]89
90            float minSpeed_;
91            float maxSpeed_;
[11025]92            std::string mesh_;
93            std::string effect1_;
[10786]94            std::string effect2_;
[10810]95            Vector3 posOffset_;
[10837]96            Vector3 direction_;
97            float angle_;
98            float delay_;
[10752]99
100            MovableEntity* explosionEntity_;
101
[10786]102            Timer destroyTimer_;
103
[10752]104
[11025]105
[10752]106    };
107}
108
[11025]109#endif /* _ExplosionPart_H__ */
Note: See TracBrowser for help on using the repository browser.