/* * 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: * Sebastian Hirsch * Robin Jacobs * Co-authors: * */ /** @file OrxyRoad.h @brief Gametype. @ingroup OrxyRoad */ #ifndef _OrxyRoad_H__ #define _OrxyRoad_H__ #include "OrxyRoadPrereqs.h" #include "OrxyRoadCenterPoint.h" // Necessary for WeakPointer?? //#include "OrxyRoadShip.h" DO NOT include in Header. Will cause forward declaration issues //#include "OrxyRoadHUDinfo.h" #include "core/EventIncludes.h" #include "core/command/Executor.h" #include "core/config/ConfigValueIncludes.h" #include "gamestates/GSLevel.h" #include "chat/ChatManager.h" #include // ! HACK #include "infos/PlayerInfo.h" #include "core/command/ConsoleCommand.h" #include "gametypes/Deathmatch.h" #include "tools/Timer.h" namespace orxonox { class _OrxyRoadExport OrxyRoad : public Deathmatch { public: OrxyRoad(Context* context); virtual void start() override; virtual void end() override; virtual void tick(float dt) override; virtual void playerPreSpawn(PlayerInfo* player) override; void levelUp(); int getLives(){return this->lives;} int getLevel(){return this->level;} int getPoints(){return this->point;} int getMultiplier(){return this->multiplier;} void setCenterpoint(OrxyRoadCenterPoint* center) { this->center_ = center; } virtual void addBots(unsigned int amount) override{} // playerInfo_; std::vector cubeList; void toggleShowLevel(){bShowLevel = !bShowLevel;} void addPoints(int numPoints); WeakPtr center_; int level; int point; bool b_combo; Timer enemySpawnTimer; Timer comboTimer; Timer showLevelTimer; int generateStreet(int type, OrxyRoadShip* player); int roadWidth; //int trafficVelocities[4]; //int numObjects[4]; //int streetSize[4]; /* //void spawnEnemy(); private: //Context* context; */ }; } #endif /* _OrxyRoad_H__ */