Changeset 1454 for code/branches/network/src/orxonox/objects
- Timestamp:
- May 28, 2008, 6:45:02 PM (16 years ago)
- Location:
- code/branches/network/src/orxonox/objects
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/objects/Projectile.cc
r1425 r1454 27 27 */ 28 28 29 #include <OgreBillboard.h> 30 29 31 #include "OrxonoxStableHeaders.h" 30 32 #include "Projectile.h" … … 41 43 { 42 44 CreateFactory(Projectile); 45 46 float Projectile::speed_ = 0; 43 47 44 48 Projectile::Projectile(SpaceShip* owner) : … … 104 108 delete this; 105 109 } 110 111 void Projectile::setColour(const ColourValue& colour) 112 { 113 this->billboard_.getBillboardSet()->getBillboard(0)->setColour(colour); 114 } 106 115 } -
code/branches/network/src/orxonox/objects/Projectile.h
r1425 r1454 35 35 #include "../tools/BillboardSet.h" 36 36 #include "../tools/Timer.h" 37 #include "util/Math.h" 37 38 38 39 namespace orxonox … … 47 48 virtual void tick(float dt); 48 49 virtual bool create(){return WorldEntity::create();} 50 void setColour(const ColourValue& colour); 49 51 50 52 private: 51 53 SpaceShip* owner_; 52 54 BillboardSet billboard_; 53 float speed_;55 static float speed_; 54 56 float lifetime_; 55 57 Timer<Projectile> destroyTimer_; -
code/branches/network/src/orxonox/objects/SpaceShip.cc
r1453 r1454 78 78 79 79 SpaceShip::SpaceShip() : 80 teamNr_(0), 81 health_(100), 80 82 //testvector_(0,0,0), 81 83 //bInvertYAxis_(false), -
code/branches/network/src/orxonox/objects/SpaceShip.h
r1425 r1454 81 81 Vector3 getOrth(); 82 82 Camera* getCamera(); 83 83 84 84 bool getMyShip(){return myShip_;} 85 86 protected: 87 int teamNr_; 88 int health_; 85 89 86 90 private:
Note: See TracChangeset
for help on using the changeset viewer.