Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 12, 2014, 3:58:59 PM (11 years ago)
Author:
sriedel
Message:

Working atm. including function after function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRace.h

    r10117 r10118  
    3838#include "dodgerace2/DodgeRacePrereqs.h"
    3939
    40 //#include "DodgeRaceCenterPoint.h"
     40#include "DodgeRaceCenterPoint.h" // Necessary for WeakPointer??
     41//#include "DodgeRaceShip.h" // DO NOT include in Header. Will cause forward declaration issues
     42
    4143//#include "DodgeRaceHUDinfo.h"
    42 //#include "DodgeRaceShip.h"
     44
     45
     46#include "core/CoreIncludes.h"
     47#include "core/EventIncludes.h"
     48#include "core/command/Executor.h"
     49#include "core/config/ConfigValueIncludes.h"
     50
     51#include "gamestates/GSLevel.h"
     52#include "chat/ChatManager.h"
     53
     54// ! HACK
     55#include "infos/PlayerInfo.h"
     56
     57#include "core/command/ConsoleCommand.h"
     58#include "worldentities/BigExplosion.h"
    4359
    4460#include "gametypes/Deathmatch.h"
     
    4864{
    4965
    50     class DodgeRace : public Deathmatch
     66    class _DodgeRaceExport DodgeRace : public Deathmatch
    5167    {
    52         public:
     68       public:
    5369            DodgeRace(Context* context);
    5470
     71            void init();
     72
    5573            virtual void start();
    56             virtual void end();
    57             virtual void addBots(unsigned int amount){} //<! overwrite function in order to bypass the addbots command
     74            //virtual void end();
    5875
    59             //void spawnEnemy();
    60 
    61             void setCenterpoint(DodgeRaceCenterPoint* center)
    62             { this->center_ = center; }
     76            void levelUp();
    6377
    6478            int getLives(){return this->lives;}
     
    6781            int getMultiplier(){return this->multiplier;}
    6882
    69             void costLife();
    70             void levelUp();
    71             void addPoints(int numPoints);
     83            void setCenterpoint(DodgeRaceCenterPoint* center)
     84                       { this->center_ = center; }
    7285
    7386            // checks if multiplier should be reset.
    7487            void comboControll();
    75             void init();
     88
     89            bool bEndGame;
     90            bool bShowLevel;
    7691            int lives;
    7792            int multiplier;
    78             bool bEndGame;
    79             bool bShowLevel;
    80         private:
     93
     94       private:
     95            WeakPtr<DodgeRaceShip> getPlayer();
     96            WeakPtr<DodgeRaceShip> player;
    8197            void toggleShowLevel(){bShowLevel = !bShowLevel;}
    82             WeakPtr<DodgeRaceShip> getPlayer();
     98            void addPoints(int numPoints);
     99
    83100            WeakPtr<DodgeRaceCenterPoint> center_;
    84             WeakPtr<DodgeRaceShip> player;
    85 
    86             Timer enemySpawnTimer;
    87             Timer comboTimer;
    88             Timer showLevelTimer;
    89             //Context* context;
    90101            int level;
    91102            int point;
    92103            bool b_combo;
     104
     105            Timer enemySpawnTimer;
     106                        Timer comboTimer;
     107                        Timer showLevelTimer;
     108
     109
     110         /* virtual void addBots(unsigned int amount){} //<! overwrite function in order to bypass the addbots command
     111
     112            //void spawnEnemy();
     113
     114
     115
     116
     117
     118            void costLife();
     119
     120
     121
     122
     123
     124
     125        private:
     126
     127
     128
     129
     130            //Context* context;
     131            */
    93132    };
    94133}
Note: See TracChangeset for help on using the changeset viewer.