Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2017, 3:29:03 PM (7 years ago)
Author:
merholzl
Message:

XML Ports and cleanUp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrx.h

    r11598 r11600  
    6767            virtual void death();
    6868            virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command
     69            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     70           
     71            void setspawnDistance( int spawnDistance)
     72                {this->spawnDistance = spawnDistance; }
     73            int getspawnDistance()
     74                { return this->spawnDistance; } 
     75            inline void setSpeed( float speed ){   
     76                orxout()<< speed<< endl;
     77                this->speed = speed; }
     78            inline float getSpeed( )
     79                { return this->speed; }
    6980
    7081            void updatePlayerPos(int x);
     
    7485           
    7586            void setCenterpoint(FlappyOrxCenterPoint* center);
    76 
     87           
    7788            int getPoints(){return this->point;}
    7889           
     
    92103            int spawnDistance;
    93104            int tubeOffsetX;
     105            float speed = 100;
    94106           
    95107        private:
Note: See TracChangeset for help on using the changeset viewer.