Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 12, 2014, 4:11:00 PM (9 years ago)
Author:
sriedel
Message:

still working atm. including function after function, currently HUD.

Location:
code/branches/surfaceraceHS14/src/modules/dodgerace2
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRace.cc

    r10118 r10124  
    6767    {
    6868        level++;
    69        /* if (getPlayer() != NULL)
     69        if (getPlayer() != NULL)
    7070        {
    7171            for (int i = 0; i < 7; i++)
     
    7676                chunk->setScale(20);
    7777            }
    78         }*/
     78        }
    7979        addPoints(multiplier * 42);
    8080        multiplier *= 2;
     
    119119        }
    120120    }
    121 
     121*/
    122122    void DodgeRace::costLife()
    123123    {
     
    128128         //   enemySpawnTimer.setTimer(30.0f, false, createExecutor(createFunctor(&DodgeRace::end, this)));
    129129    };
    130 */
     130
    131131    void DodgeRace::comboControll()
    132132    {
     
    145145        this->bForceSpawn_ = true;
    146146
    147         /*if (this->center_ == NULL)  // abandon mission!
     147        if (this->center_ == NULL)  // abandon mission!
    148148        {
    149149            orxout(internal_error) << "DodgeRace: No Centerpoint specified." << endl;
    150150            GSLevel::startMainMenu();
    151151            return;
    152         }*/
     152        }
    153153        // Call start for the parent class.
    154154        Deathmatch::start();
     
    162162        }
    163163    }
    164 /*
     164
    165165    void DodgeRace::end()
    166166    {
     
    170170        // Instead startMainMenu, this won't crash.
    171171        GSLevel::startMainMenu();
    172     }*/
     172    }
    173173}
  • code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRace.h

    r10118 r10124  
    3939
    4040#include "DodgeRaceCenterPoint.h" // Necessary for WeakPointer??
    41 //#include "DodgeRaceShip.h" // DO NOT include in Header. Will cause forward declaration issues
     41//#include "DodgeRaceShip.h"            DO NOT include in Header. Will cause forward declaration issues
    4242
    4343//#include "DodgeRaceHUDinfo.h"
     
    7272
    7373            virtual void start();
    74             //virtual void end();
     74            virtual void end();
    7575
    7676            void levelUp();
     
    8383            void setCenterpoint(DodgeRaceCenterPoint* center)
    8484                       { this->center_ = center; }
     85            virtual void addBots(unsigned int amount){} //<! overwrite function in order to bypass the addbots command
    8586
    8687            // checks if multiplier should be reset.
    8788            void comboControll();
     89            void costLife();
    8890
    8991            bool bEndGame;
     
    108110
    109111
    110          /* virtual void addBots(unsigned int amount){} //<! overwrite function in order to bypass the addbots command
     112         /*
    111113
    112114            //void spawnEnemy();
     
    116118
    117119
    118             void costLife();
     120
    119121
    120122
  • code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceHUDinfo.cc

    r10118 r10124  
    3939    {
    4040        RegisterObject(DodgeRaceHUDinfo);
    41 /*
     41
    4242        this->DodgeRaceGame = 0;
    4343        this->bShowLives_ = false;
    4444        this->bShowLevel_ = false;
    4545        this->bShowPoints_ = false;
    46         this->bShowMultiplier_ = false;*/
     46        this->bShowMultiplier_ = false;
    4747    }
    4848/*
  • code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceHUDinfo.h

    r10118 r10124  
    4343     public:
    4444            DodgeRaceHUDinfo(Context* context);
    45   /*
    46             virtual void tick(float dt);
    47             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    48             virtual void changedOwner();
     45
     46         //   virtual void tick(float dt);
     47           // virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     48            //virtual void changedOwner();
    4949
    5050            inline void setShowLives(bool value)
     
    7474            bool bShowLevel_;
    7575            bool bShowPoints_;
    76             bool bShowMultiplier_;*/
     76            bool bShowMultiplier_;
    7777    };
    7878}
  • code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceShip.cc

    r10118 r10124  
    4646        damping = 10;
    4747
     48        // not sure if has to be zero?
    4849        lastTimeFront = 0;
    4950        lastTimeLeft = 0;
     
    106107        setPosition(pos);
    107108        setOrientation(Vector3::UNIT_Y, Degree(270));
    108 /*
     109
    109110        // Level up!
    110111        if (pos.x > 42000)
     
    113114            setPosition(Vector3(0, 0, pos.z)); // pos - Vector3(30000, 0, 0)
    114115        }
    115 */
     116
    116117        SUPER(DodgeRaceShip, tick, dt);
    117118    }
     
    183184        return game;
    184185    }
    185 /*
     186
    186187    void DodgeRaceShip::death()
    187188    {
    188189        getGame()->costLife();
    189190        SpaceShip::death();
    190     }*/
     191    }
    191192}
  • code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceShip.h

    r10118 r10124  
    7575            bool isFireing;
    7676
     77        protected:
     78            virtual void death();
     79
    7780        private:
    7881            WeakPtr<DodgeRace> getGame();
    7982            WeakPtr<DodgeRace> game;
     83            WeakPtr<Projectile> lastShot;
    8084            Camera* camera;
    8185            float lastTimeFront, lastTimeLeft, lastTime;
     
    9094
    9195/*
    92 
    93 
    94             //virtual inline bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint);
    95 
    96         protected:
    97             virtual void death();
     96                         virtual inline bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint);
    9897
    9998        private:
    10099
    101 
    102 
    103 
    104 
    105 
    106 
    107            // WeakPtr<DodgeRaceEnemy> lastEnemy;
    108             WeakPtr<Projectile> lastShot;*/
     100            WeakPtr<DodgeRaceEnemy> lastEnemy;
     101           */
    109102
    110103    };
Note: See TracChangeset for help on using the changeset viewer.