Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 4, 2017, 4:17:43 PM (7 years ago)
Author:
vyang
Message:

Asteroiden werden generiert und bewegen sich, HUD muss noch angepasst werden, Punkte und Health und Leben anzeigen. Raumschiff kann noch nicht schiessen, evtl auch Schutzfunktion → nachdem ein Leben verloren wurde 2s Immunitaet?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Asteroid_HS17/src/modules/asteroids2D/Asteroids2D.h

    r11619 r11637  
    7979            void levelUp();
    8080
     81
     82            //For HUD
    8183            int getLives(){return this->lives;}
    8284            int getLevel(){return this->level;}
     
    8486            int getMultiplier(){return this->multiplier;}
    8587
     88            //Generate Stones
    8689            void spawnStone();
    8790            void setCenterpoint(Asteroids2DCenterPoint* center)
    88                        { this->center_ = center; }
     91                { this->center_ = center; }
     92            void addPoints(int numPoints);
    8993            virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command
    9094
    9195            // checks if multiplier should be reset.
    9296            void costLife();
    93 
     97            Asteroids2DShip* getPlayer();
    9498
    9599            bool bEndGame;
     
    101105
    102106
    103             Asteroids2DShip* getPlayer();
     107
    104108            WeakPtr<Asteroids2DShip> player;
    105109            void toggleShowLevel(){bShowLevel = !bShowLevel;}
    106             void addPoints(int numPoints);
    107110
    108111            WeakPtr<Asteroids2DCenterPoint> center_;
Note: See TracChangeset for help on using the changeset viewer.