Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 30, 2017, 4:04:29 PM (8 years ago)
Author:
vyang
Message:

Files hinzugefuegt, versucht Aehnlichkeiten mit anderen minigames (dodgerace, invader) zu finden. Testlevel noch zu bearbeiten. Gametype Asteroids crashed immer noch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Asteroid_HS17/src/modules/asteroids/Asteroids.h

    r11506 r11516  
    3333*/
    3434
    35 #ifndef _Invader_H__
    36 #define _Invader_H__
     35#ifndef _Asteroids_H__
     36#define _Asteroids_H__
    3737
    38 #include "invader/InvaderPrereqs.h"
    39 
     38#include "asteroids/AsteroidsPrereqs.h"
    4039#include "gametypes/Deathmatch.h"
    4140#include "tools/Timer.h"
     
    4443{
    4544
    46     class _InvaderExport Invader : public Deathmatch
     45    class _AsteroidsExport Asteroids : public Deathmatch
    4746    {
    4847        public:
    49             Invader(Context* context);
     48            Asteroids(Context* context);
    5049
    5150            virtual void start() override;
    5251            virtual void end() override;
     52            virtual void tick(float dt) override;
    5353            virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command
    5454
    55             void spawnEnemy();
    56 
    57             void setCenterpoint(InvaderCenterPoint* center);
     55            void setCenterpoint(AsteroidsCenterPoint* center);
    5856
    5957            int getLives(){return this->lives;}
    60             int getLevel(){return this->level;}
    6158            int getPoints(){return this->point;}
    62             int getMultiplier(){return this->multiplier;}
     59           
     60            void costLife();
     61            void addPoints(int numPoints);
    6362
    64             void costLife();
    65             void levelUp();
    66             void addPoints(int numPoints);
    67             // checks if multiplier should be reset.
    68             void comboControll();
    6963            int lives;
    70             int multiplier;
    7164            bool bEndGame;
    72             bool bShowLevel;
     65           
    7366        private:
    7467            void toggleShowLevel(){bShowLevel = !bShowLevel;}
    75             InvaderShip* getPlayer();
    76             WeakPtr<InvaderCenterPoint> center_;
    77             WeakPtr<InvaderShip> player;
     68            AsteroidsShip* getPlayer();
     69            WeakPtr<AsteroidsCenterPoint> center_;
     70            WeakPtr<AsteroidsShip> player;
     71            WeakPtr<Camera> camera;
    7872
    7973            Timer enemySpawnTimer;
Note: See TracChangeset for help on using the changeset viewer.