/* * 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: * Manuel Meier * Co-authors: * ... * */ #ifndef _OrxoKartOrigin_H__ #define _OrxoKartOrigin_H__ #include "OrxoKartPrereqs.h" #include "worldentities/StaticEntity.h" namespace orxonox { /** @brief The OrxoKartOrigin implements the playing field @ref orxonox::OrxoKart "OrxoKart" takes place in and allows for many parameters of the minigame to be set. The playing field resides in the x,z-plane, with the x-axis being the horizontal axis and the z-axis being the vertical axis. For an example, have a look at the OrxoKart1.oxw level file. */ class _OrxoKartExport OrxoKartOrigin : public StaticEntity { public: OrxoKartOrigin(Context* context); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually OrxoKart. virtual ~OrxoKartOrigin() = default; virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method to create a OrxoKartOrigin through XML. inline void setNumCells(int numCells) { this->numCells_ = numCells; } inline int getNumCells() const { return this->numCells_; } inline void setCellSize(int cellSize) { this->cellSize_ = cellSize; } inline int getCellSize() const { return this->cellSize_; } private: void checkGametype(); int numCells_; int cellSize_; }; } #endif /* _OrxoKartOrigin_H__ */