Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2016, 3:13:51 PM (8 years ago)
Author:
fvultier
Message:

merged branch hover

File:
1 edited

Legend:

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

    r11071 r11199  
    2424 *   Co-authors:
    2525 *      Cyrill Burgener
     26 *      Tomer Gidron
    2627 *
    2728 */
     
    3738
    3839#include "HoverPrereqs.h"
     40#include "HoverShip.h"
    3941
    4042#include <vector>
     
    4244#include "gametypes/Gametype.h"
    4345#include "HoverOrigin.h"
     46#include "pickup/PickupSpawner.h"
    4447
    4548namespace orxonox
     
    5558                { this->origin_ = origin; }
    5659
     60            void start();
     61            void createFlags();
     62            void levelUp();
     63            void endLevel();
     64            void costLife();
     65
    5766            inline int getNumberOfFlags() const
    5867                { return this->numberOfFlags_; }
    5968
     69            virtual Vector3 get3dCoordinates(int x, int y, float heightOffset);
     70
     71            inline int getTotFlags() const
     72                { return this->totFlags; }
     73
     74            inline int getLives() const
     75                { return this->lives; }
     76
     77            inline int getLevel() const
     78                { return this->level; }
     79
     80            bool bLevelUpgradeHUD;
     81
    6082        private:
     83
    6184            WeakPtr<HoverOrigin> origin_;
    6285            std::vector<HoverFlag*> flags_;
    6386            int numberOfFlags_;
    6487            bool firstTick_;
     88            int level;
     89            int lives;
     90            int flagsTaken;
     91
     92            int cellSize;
     93            int cellHeight;
     94            int numCells;
     95
     96            int totFlags;
     97
     98            std::vector<PickupSpawner*> pickupSpawners_;
     99
     100            void toggleShowLevel(){bLevelUpgradeHUD = !bLevelUpgradeHUD;}
     101
     102            Timer showLevelTimer;
    65103    };
    66104}
Note: See TracChangeset for help on using the changeset viewer.