Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9987 in orxonox.OLD for branches/playability


Ignore:
Timestamp:
Dec 3, 2006, 3:26:08 PM (18 years ago)
Author:
nicolasc
Message:

update regen(); add new model for hbolt

Location:
branches/playability/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/hbolt.cc

    r9979 r9987  
    124124  if (this->tickLifeCycle(dt))
    125125    this->deactivate();
     126
     127
    126128}
    127129
     
    144146  glDisable(GL_LIGHTING);
    145147
     148  //glPushMatrix();
     149  //glRotatef(30, 0.0f, 1.0f, 0.0f);
     150
    146151  WorldEntity::draw();
    147152/*  glMatrixMode(GL_MODELVIEW);
     
    156161  glPopMatrix();*/
    157162
     163/*
     164
     165  float matrix[4][4];
     166  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
     167  this->getAbsDir().matrix (matrix);
     168  glMultMatrixf((float*)matrix);
     169  glRotatef(30, 0.0, 1.0, 0.0);
     170  //glMultMatrixf((float*)matrix);
     171  this->getModel()->draw();*/
     172  //glPopMatrix();
    158173  glPopAttrib();
    159174}
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r9979 r9987  
    626626    }
    627627    else { // shield <= pDamage
    628       this->shieldCur = 0;
    629       this->shieldActive = false; //shield collaptses
     628      this->shieldCur -=pDamage;
     629      this->shieldActive = false; //shield collapses
    630630      pDamage = pDamage - this->shieldCur;
    631631      if( !this->shieldActive) {
     
    641641  if( this->armorCur <= 0) { /* FIXME implement shipcrash*/ }
    642642}
     643
    643644
    644645void SpaceShip::regen(float time){
     
    671672}
    672673
     674
    673675/**
    674676 * Weapon regeneration
     
    679681  float energy  = ( this->reactorOutput * this->weaponEnergyShare + this->weaponEnergyRegen) * time;
    680682  Weapon* weapon;
    681   for( int i=0; i < this->weaponMan.getSlotCount(); i++)
     683  for( unsigned int i=0; i < this->weaponMan.getSlotCount(); i++)
    682684  {
    683685    weapon = this->weaponMan.getWeapon(i);
     
    692694}
    693695
     696
    694697void SpaceShip::enterPlaymode(Playable::Playmode playmode)
    695698{
    696699}
    697700
     701
    698702void SpaceShip::movement (float dt)
    699703{
  • branches/playability/src/world_entities/test_entity2.cc

    r9979 r9987  
    117117
    118118
    119     glDisable(GL_TEXTURE_2D);
     119    glEnable(GL_TEXTURE_2D);
    120120    this->material->select();
    121121
     
    244244
    245245  this->setParent(pl);
    246 }
    247 
    248 
    249 
    250 
    251 
    252 
     246
     247}
     248
     249
     250
     251
     252
     253
Note: See TracChangeset for help on using the changeset viewer.