Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2015, 2:40:08 PM (9 years ago)
Author:
bucyril
Message:

1234

M hover/Hover.cc
M hover/Hover.h
M hover/HoverShip.cc
A hover/HoverPrereqs.h
M hover/HoverShip.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hoverHS15/src/modules/hover/Hover.h

    r10658 r10659  
     1<<<<<<< .mine
    12/*
    23 *   ORXONOX - the hottest 3D action shooter ever to exist
     
    2122 *
    2223 *   Author:
    23  *      Florian Zinggeler
     24 *      Cyrill Burgener
    2425 *   Co-authors:
    2526 *      ...
     
    3334*/
    3435
     36#ifndef _DodgeRace_H__
     37#define _DodgeRace_H__
     38
     39#include "hover/HoverPrereqs.h"
     40
     41
     42#include "core/EventIncludes.h"
     43#include "core/command/Executor.h"
     44#include "core/config/ConfigValueIncludes.h"
     45
     46#include "gamestates/GSLevel.h"
     47#include "chat/ChatManager.h"
     48#include <vector>
     49
     50// ! HACK
     51#include "infos/PlayerInfo.h"
     52
     53#include "core/command/ConsoleCommand.h"
     54#include "worldentities/BigExplosion.h"
     55
     56#include "gametypes/Deathmatch.h"
     57#include "tools/Timer.h"
     58
     59namespace orxonox
     60{
     61
     62    class _HoverExport Hover : public Deathmatch
     63    {
     64       public:
     65            Hover(Context* context);
     66
     67            virtual void start();
     68            virtual void end();
     69
     70            virtual void tick(float dt);
     71
     72            virtual void playerPreSpawn(PlayerInfo* player);
     73
     74            void levelUp();
     75
     76            int getLives(){return this->lives;}
     77            int getLevel(){return this->level;}
     78            int getPoints(){return this->point;}
     79            int getMultiplier(){return this->multiplier;}
     80
     81            void setCenterpoint(DodgeRaceCenterPoint* center)
     82                       { this->center_ = center; }
     83            virtual void addBots(unsigned int amount){} //<! overwrite function in order to bypass the addbots command
     84
     85            // checks if multiplier should be reset.
     86            void comboControll();
     87            void costLife();
     88
     89            bool bEndGame;
     90            bool bShowLevel;
     91            int lives;
     92            int multiplier;
     93            float counter;
     94            int pattern;
     95            float currentPosition;
     96            float lastPosition;
     97
     98       private:
     99            Timer endGameTimer;
     100
     101            DodgeRaceShip* getPlayer();
     102            WeakPtr<DodgeRaceShip> player;
     103            std::vector<DodgeRaceCube*> cubeList;
     104            void toggleShowLevel(){bShowLevel = !bShowLevel;}
     105            void addPoints(int numPoints);
     106
     107            WeakPtr<DodgeRaceCenterPoint> center_;
     108            int level;
     109            int point;
     110            bool b_combo;
     111
     112            Timer enemySpawnTimer;
     113            Timer comboTimer;
     114            Timer showLevelTimer;
     115
     116
     117         /*
     118
     119            //void spawnEnemy();
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132        private:
     133
     134
     135
     136
     137            //Context* context;
     138            */
     139    };
     140}
     141
     142#endif /* _DodgeRace_H__ */
     143=======
     144/*
     145 *   ORXONOX - the hottest 3D action shooter ever to exist
     146 *                    > www.orxonox.net <
     147 *
     148 *
     149 *   License notice:
     150 *
     151 *   This program is free software; you can redistribute it and/or
     152 *   modify it under the terms of the GNU General Public License
     153 *   as published by the Free Software Foundation; either version 2
     154 *   of the License, or (at your option) any later version.
     155 *
     156 *   This program is distributed in the hope that it will be useful,
     157 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
     158 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     159 *   GNU General Public License for more details.
     160 *
     161 *   You should have received a copy of the GNU General Public License
     162 *   along with this program; if not, write to the Free Software
     163 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     164 *
     165 *   Author:
     166 *      Florian Zinggeler
     167 *   Co-authors:
     168 *      ...
     169 *
     170 */
     171
     172/**
     173    @file Hover.h
     174    @brief Gametype.
     175    @ingroup Hover
     176*/
     177
    35178#ifndef _Hover_H__
    36179#define _Hover_H__
     
    82225
    83226#endif /* _Hover_H__ */
     227>>>>>>> .r10658
Note: See TracChangeset for help on using the changeset viewer.