Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 11, 2005, 12:55:48 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: setClassID implemented in all files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/projectile.cc

    r4464 r4597  
    11
    22
    3 /* 
     3/*
    44   orxonox - the future of 3D-vertical-scrollers
    55
     
    1313   ### File Specific
    1414   main-programmer: Patrick Boenzli
    15    co-programmer: 
     15   co-programmer:
    1616*/
    1717
     
    3434{
    3535  this->setClassID(CL_PROJECTILE, "Projectile");
     36
    3637  this->weapon = weapon;
    3738  this->flightDirection = NULL;
     
    4546   \brief standard deconstructor
    4647*/
    47 Projectile::~Projectile () 
     48Projectile::~Projectile ()
    4849{
    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
    5253  */
    5354  //delete this->projectileModel;
     
    110111   \param time since last tick
    111112*/
    112 void Projectile::tick (float time) 
     113void Projectile::tick (float time)
    113114{
    114115  Vector v = this->velocity * (time);
     
    131132   \param place where it is hit
    132133*/
    133 void Projectile::hit (WorldEntity* entity, Vector* place) 
     134void Projectile::hit (WorldEntity* entity, Vector* place)
    134135{}
    135136
     
    138139   \brief the function gets called, when the projectile is destroyed
    139140*/
    140 void Projectile::destroy () 
     141void Projectile::destroy ()
    141142{}
    142143
    143144
    144 void Projectile::draw () 
     145void Projectile::draw ()
    145146{
    146147  glMatrixMode(GL_MODELVIEW);
    147148  glPushMatrix();
    148149
    149   float matrix[4][4]; 
     150  float matrix[4][4];
    150151  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
    151152  this->getAbsDir().matrix (matrix);
    152   glMultMatrixf((float*)matrix); 
     153  glMultMatrixf((float*)matrix);
    153154  this->model->draw();
    154155
Note: See TracChangeset for help on using the changeset viewer.