Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2013, 6:51:39 PM (10 years ago)
Author:
zifloria
Message:

points, level up, hud

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/invaders/src/modules/invader/Invader.h

    r9828 r9829  
    6666            int getLevel(){return this->level;}
    6767            int getPoints(){return this->point;}
     68
     69            void costLife(){lives--; if (lives == 0) orxout() << "end<<<<<<<<<<<<<<<<<" << endl;};
     70            void levelUp(){level++;}
     71            void addPoints(int numPoints){point += numPoints * multiplier; b_combo = true;}
     72            void comboControll();
    6873        private:
    6974            WeakPtr<InvaderCenterPoint> center_;
     
    7277            ConsoleCommand* console_addEnemy;
    7378            Timer enemySpawnTimer;
     79            Timer comboTimer;
    7480            //Context* context;
    7581            int lives;
    7682            int level;
    7783            int point;
     84            bool b_combo;
     85            int multiplier;
    7886    };
    7987}
Note: See TracChangeset for help on using the changeset viewer.