/* * ORXONOX - the hottest 3D action shooter ever to exist * > www.orxonox.net < * * * License notice: * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: * Fabian 'x3n' Landau * Co-authors: * ... * */ #ifndef _SpicedAsteroidField_H__ #define _SpicedAsteroidField_H__ #include "OrxonoxPrereqs.h" #include #include #include "interfaces/PickupCarrier.h" #include "interfaces/RadarViewable.h" #include "worldentities/ControllableEntity.h" #include "worldentities/ExplosionPart.h" #include "../../orxonox/worldentities/pawns/Pawn.h" namespace orxonox // tolua_export { // tolua_export class _OrxonoxExport SpicedAsteroidField { // tolua_export public: SpicedAsteroidField(Context* context);// This constructor is for XML access only! virtual ~SpicedAsteroidField(); virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; virtual void tick(float dt) override; inline void setCount(float s){this->count = s;} inline float getCount(){return this->count;} inline void setMineralDensity(float d){this->mDensity = d;} inline float getMineralDensity(){return this->mDensity;} inline void setPosition(Vector3 v){this->position = v;} inline Vector3 getPosition(){returrn this->position;} inline void setMaxSize(int i){this->maxSize = i;} inline int getMaxSize(){return this->maxSize;} inline void setMinSize(int i){this->minSize = i;} inline int getMinSize(){return this->minSize;} inline void setRadius(float r){this->radius = r;} inline int getRadius(){return this->radius;} inline void setFog(bool f){this->foggy = f;} inline bool isFoggy(){return this->foggy;} protected: // Da neue Argumente reinstellen //float asteroidVersion; // Bodenstrich-Konvention?, // Wert zwischen 1 und 6 (Spezialdinger?), die Mesh-Form float count; float mDensity; // Mineral density, between 0 and 1; Vector3 position; bool initialised; Context* context; int maxSize; int minSize; float radius; bool foggy; virtual void create(); private: void registerVariables(); }; // tolua_export } // tolua_export #endif /* _SpicedAsteroidField_H__ */