Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 23, 2017, 3:19:08 PM (8 years ago)
Author:
pascscha
Message:

MoveUpDown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrx.h

    r11481 r11503  
    3636#define _FlappyOrx_H__
    3737
     38#include "flappyorx/FlappyOrxPrereqs.h"
     39
    3840#include "gametypes/Deathmatch.h"
     41#include "tools/Timer.h"
    3942
    4043namespace orxonox
     
    4851            virtual void start() override;
    4952            virtual void end() override;
    50            
     53            virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command
     54
     55            void spawnEnemy();
     56
     57            void setCenterpoint(FlappyOrxCenterPoint* center);
     58
     59            int getLives(){return this->lives;}
     60            int getLevel(){return this->level;}
     61            int getPoints(){return this->point;}
     62            int getMultiplier(){return this->multiplier;}
     63
     64            void costLife();
     65            void levelUp();
     66            void addPoints(int numPoints);
     67            // checks if multiplier should be reset.
     68            void comboControll();
     69            int lives;
     70            int multiplier;
     71            bool bEndGame;
     72            bool bShowLevel;
    5173        private:
    5274            void toggleShowLevel(){bShowLevel = !bShowLevel;}
     75            FlappyOrxShip* getPlayer();
     76            WeakPtr<FlappyOrxCenterPoint> center_;
     77            WeakPtr<FlappyOrxShip> player;
     78
     79            Timer enemySpawnTimer;
     80            Timer comboTimer;
     81            Timer showLevelTimer;
     82            //Context* context;
     83            int level;
     84            int point;
     85            bool b_combo;
    5386    };
    5487}
Note: See TracChangeset for help on using the changeset viewer.