Changeset 4597 in orxonox.OLD for orxonox/trunk/src/world_entities/projectile.cc
- Timestamp:
- Jun 11, 2005, 12:55:48 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/projectile.cc
r4464 r4597 1 1 2 2 3 /* 3 /* 4 4 orxonox - the future of 3D-vertical-scrollers 5 5 … … 13 13 ### File Specific 14 14 main-programmer: Patrick Boenzli 15 co-programmer: 15 co-programmer: 16 16 */ 17 17 … … 34 34 { 35 35 this->setClassID(CL_PROJECTILE, "Projectile"); 36 36 37 this->weapon = weapon; 37 38 this->flightDirection = NULL; … … 45 46 \brief standard deconstructor 46 47 */ 47 Projectile::~Projectile () 48 Projectile::~Projectile () 48 49 { 49 /* 50 do not delete the test projectModel, since it is pnode 51 and will be cleaned out by world 50 /* 51 do not delete the test projectModel, since it is pnode 52 and will be cleaned out by world 52 53 */ 53 54 //delete this->projectileModel; … … 110 111 \param time since last tick 111 112 */ 112 void Projectile::tick (float time) 113 void Projectile::tick (float time) 113 114 { 114 115 Vector v = this->velocity * (time); … … 131 132 \param place where it is hit 132 133 */ 133 void Projectile::hit (WorldEntity* entity, Vector* place) 134 void Projectile::hit (WorldEntity* entity, Vector* place) 134 135 {} 135 136 … … 138 139 \brief the function gets called, when the projectile is destroyed 139 140 */ 140 void Projectile::destroy () 141 void Projectile::destroy () 141 142 {} 142 143 143 144 144 void Projectile::draw () 145 void Projectile::draw () 145 146 { 146 147 glMatrixMode(GL_MODELVIEW); 147 148 glPushMatrix(); 148 149 149 float matrix[4][4]; 150 float matrix[4][4]; 150 151 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 151 152 this->getAbsDir().matrix (matrix); 152 glMultMatrixf((float*)matrix); 153 glMultMatrixf((float*)matrix); 153 154 this->model->draw(); 154 155
Note: See TracChangeset
for help on using the changeset viewer.