Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 30, 2007, 9:17:21 PM (19 years ago)
Author:
patrick
Message:

merged playability back to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/medium_blaster.cc

    r10415 r10516  
    1010
    1111#include "loading/fast_factory.h"
     12
     13#include "elements/glgui_energywidgetvertical.h"
    1214
    1315//
     
    138140}
    139141
     142
    140143/**
    141144 *  this activates the weapon
     
    158161  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
    159162
    160   static_cast<StaticModel*>(this->getModel())->draw(2);
     163  static_cast<StaticModel*>(this->getModel())->draw(0);
    161164
    162165  glPushMatrix();
     
    167170  glPushMatrix();
    168171    glTranslatef (this->objComp[0][1]->getAbsCoor().x, this->objComp[0][1]->getAbsCoor().y, this->objComp[0][1]->getAbsCoor().z);
    169     static_cast<StaticModel*>(this->getModel())->draw(0);
     172    static_cast<StaticModel*>(this->getModel())->draw(2);
    170173  glPopMatrix();
    171174
    172175  glPopMatrix();
    173176}
     177
     178void MediumBlaster::tick(float dt)
     179{
     180  if (this->energyWidget != NULL && !this->isEnergyWidgetInitialized)
     181  {
     182    this->energyWidget->setDisplayedImage("textures/gui/gui_medium_bold.png");
     183    this->setEnergyWidgetInitialized(true);
     184  }
     185}
Note: See TracChangeset for help on using the changeset viewer.