Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2008, 6:45:02 PM (16 years ago)
Author:
landauf
Message:

fixed tcl initialisation bug

Location:
code/branches/network/src/orxonox/objects
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/objects/Projectile.cc

    r1425 r1454  
    2727 */
    2828
     29#include <OgreBillboard.h>
     30
    2931#include "OrxonoxStableHeaders.h"
    3032#include "Projectile.h"
     
    4143{
    4244    CreateFactory(Projectile);
     45
     46    float Projectile::speed_ = 0;
    4347
    4448    Projectile::Projectile(SpaceShip* owner) :
     
    104108        delete this;
    105109    }
     110
     111    void Projectile::setColour(const ColourValue& colour)
     112    {
     113        this->billboard_.getBillboardSet()->getBillboard(0)->setColour(colour);
     114    }
    106115}
  • code/branches/network/src/orxonox/objects/Projectile.h

    r1425 r1454  
    3535#include "../tools/BillboardSet.h"
    3636#include "../tools/Timer.h"
     37#include "util/Math.h"
    3738
    3839namespace orxonox
     
    4748            virtual void tick(float dt);
    4849            virtual bool create(){return WorldEntity::create();}
     50            void setColour(const ColourValue& colour);
    4951
    5052        private:
    5153            SpaceShip* owner_;
    5254            BillboardSet billboard_;
    53             float speed_;
     55            static float speed_;
    5456            float lifetime_;
    5557            Timer<Projectile> destroyTimer_;
  • code/branches/network/src/orxonox/objects/SpaceShip.cc

    r1453 r1454  
    7878
    7979    SpaceShip::SpaceShip() :
     80      teamNr_(0),
     81      health_(100),
    8082      //testvector_(0,0,0),
    8183      //bInvertYAxis_(false),
  • code/branches/network/src/orxonox/objects/SpaceShip.h

    r1425 r1454  
    8181            Vector3 getOrth();
    8282            Camera* getCamera();
    83            
     83
    8484            bool getMyShip(){return myShip_;}
     85
     86        protected:
     87            int teamNr_;
     88            int health_;
    8589
    8690        private:
Note: See TracChangeset for help on using the changeset viewer.