Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/explosionChunksHS15/src/orxonox/worldentities/VaydinExplosion.cc @ 10669

Last change on this file since 10669 was 10669, checked in by vaydin, 9 years ago

created new explosion class

File size: 2.7 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
30#include "VaydinExplosion.h"
31
32#include "util/Exception.h"
33#include "core/CoreIncludes.h"
34#include "core/GameMode.h"
35#include "core/command/Executor.h"
36#include "tools/ParticleInterface.h"
37#include "Scene.h"
38#include "graphics/ParticleSpawner.h"
39#include "graphics/Model.h"
40#include "MovableEntity.h"
41
42
43namespace orxonox
44{
45        RegisterClass(VaydinExplosion);
46
47        VaydinExplosion::VaydinExplosion(Context* context) : MovableEntity(context)
48        {
49                RegisterObject(VaydinExplosion);
50
51                meshList_.clear();
52
53                /*if ( GameMode::showsGraphics() && ( !this->getScene() || !this->getScene()->getSceneManager() ) )
54            ThrowException(AbortLoading, "Can't create VaydinExplosion, no scene or no scene manager given.");
55
56        this->bStop_ = false;
57        this->LOD_ = LODParticle::Normal;
58
59        if ( GameMode::showsGraphics() )
60        {
61
62                try
63            {
64               
65            }
66            catch (const std::exception& ex)
67            {
68                orxout(internal_error) << "Couldn't load particle effect in VaydinExplosion: " << ex.what() << endl;
69                //this->initZero();
70            }
71           
72        }
73
74        else
75        {
76           
77        }
78
79        if (GameMode::isMaster())
80        {
81
82            this->destroyTimer_.setTimer(rnd(2, 4), false, createExecutor(createFunctor(&VaydinExplosion::stop, this)));
83
84        }*/
85
86        this->registerVariables();
87
88        }
89
90
91
92        void VaydinExplosion::XMLPort(Element& xmlelement, XMLPort::Mode mode)
93    {
94        SUPER(VaydinExplosion, XMLPort, xmlelement, mode);
95
96        XMLPortParam(VaydinExplosion, "mesh", setMesh, getMesh, xmlelement, mode);
97       
98    }
99
100
101    void VaydinExplosion::setMesh(&std::string newString)
102    {
103        this->
104    }
105
106    &std::string VaydinExplosion::getMesh()
107    {}
108
109
110
111
112
113
114}
Note: See TracBrowser for help on using the repository browser.