[10005] | 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 | * Florian Zinggeler |
---|
| 24 | * Co-authors: |
---|
| 25 | * ... |
---|
| 26 | * |
---|
| 27 | */ |
---|
| 28 | |
---|
| 29 | /** |
---|
| 30 | @file Jump.h |
---|
| 31 | @brief Gametype. |
---|
| 32 | @ingroup Jump |
---|
| 33 | */ |
---|
| 34 | |
---|
| 35 | #ifndef _Jump_H__ |
---|
| 36 | #define _Jump_H__ |
---|
| 37 | |
---|
| 38 | #include "jump/JumpPrereqs.h" |
---|
| 39 | #include "gametypes/Deathmatch.h" |
---|
| 40 | #include "JumpCenterPoint.h" |
---|
| 41 | #include "tools/Timer.h" |
---|
[10022] | 42 | #include "JumpPlatform.h" |
---|
[10005] | 43 | |
---|
| 44 | namespace orxonox |
---|
| 45 | { |
---|
| 46 | |
---|
| 47 | class _JumpExport Jump : public Deathmatch |
---|
| 48 | { |
---|
| 49 | public: |
---|
| 50 | Jump(Context* context); |
---|
| 51 | |
---|
| 52 | //virtual void start(); |
---|
| 53 | //virtual void end(); |
---|
| 54 | //virtual void addBots(unsigned int amount){} //<! overwrite function in order to bypass the addbots command |
---|
| 55 | |
---|
| 56 | //void spawnEnemy(); |
---|
| 57 | |
---|
| 58 | void setCenterpoint(JumpCenterPoint* center){ this->center_ = center; } |
---|
| 59 | |
---|
| 60 | /*int getLives(){return this->lives;} |
---|
| 61 | int getLevel(){return this->level;} |
---|
| 62 | int getPoints(){return this->point;} |
---|
| 63 | int getMultiplier(){return this->multiplier;}*/ |
---|
| 64 | |
---|
| 65 | /*void costLife(); |
---|
| 66 | void levelUp(); |
---|
| 67 | void addPoints(int numPoints); |
---|
| 68 | // checks if multiplier should be reset. |
---|
| 69 | void comboControll();*/ |
---|
| 70 | void init(); |
---|
| 71 | //int lives; |
---|
| 72 | //int multiplier; |
---|
| 73 | //bool bEndGame; |
---|
| 74 | //bool bShowLevel; |
---|
| 75 | private: |
---|
| 76 | //void toggleShowLevel(){bShowLevel = !bShowLevel;} |
---|
| 77 | WeakPtr<JumpShip> getPlayer(); |
---|
| 78 | WeakPtr<JumpCenterPoint> center_; |
---|
| 79 | WeakPtr<JumpShip> player; |
---|
| 80 | |
---|
| 81 | /*Timer enemySpawnTimer; |
---|
| 82 | Timer comboTimer; |
---|
| 83 | Timer showLevelTimer; |
---|
| 84 | //Context* context; <-- War schon auskommentiert!!! |
---|
| 85 | int level; |
---|
| 86 | int point; |
---|
| 87 | bool b_combo;*/ |
---|
| 88 | }; |
---|
| 89 | } |
---|
| 90 | |
---|
| 91 | #endif /* _Jump_H__ */ |
---|