Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6417 in orxonox.OLD


Ignore:
Timestamp:
Jan 6, 2006, 4:00:21 PM (18 years ago)
Author:
bensch
Message:

network: scale to ALLWAY 1

Location:
branches/network/src/world_entities
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/space_ships/space_ship.cc

    r6341 r6417  
    121121  PRINTF(4)("SPACESHIP INIT\n");
    122122
    123   //  EventHandler::getInstance()->grabEvents(true);
     123    EventHandler::getInstance()->grabEvents(true);
    124124
    125125  bUp = bDown = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = false;
  • branches/network/src/world_entities/weapons/ground_turret.cc

    r6341 r6417  
    119119void GroundTurret::draw () const
    120120{
    121   glMatrixMode(GL_MODELVIEW);
    122   glPushMatrix();
    123   float matrix[4][4];
    124 
    125   /* translate */
    126   glTranslatef (this->getAbsCoor ().x,
    127                 this->getAbsCoor ().y,
    128                 this->getAbsCoor ().z);
    129   /* rotate */
    130   this->getAbsDir().matrix(matrix);
    131   glMultMatrixf((float*)matrix);
    132 
    133   if (this->getModel())
    134     this->getModel()->draw();
    135 
    136   glPopMatrix();
     121  WorldEntity::draw();
     122
    137123  if (this->left != NULL)
    138124    this->left->draw();
  • branches/network/src/world_entities/world_entity.cc

    r6415 r6417  
    128128    {
    129129      PRINTF(4)("fetching OBJ file: %s\n", fileName);
    130       if (scaling == 1.0)
     130      if (true/*scaling == 1.0*/)
    131131        this->setModel((Model*)ResourceManager::getInstance()->load(fileName, OBJ, RP_CAMPAIGN), modelNumber);
    132132      else
     
    348348 * Debug the WorldEntity
    349349 */
    350 void WorldEntity::debugWE()
     350void WorldEntity::debugEntity() const
    351351{
    352352  PRINT(0)("WorldEntity %s::%s  (DEBUG)\n", this->getClassName(), this->getName());
    353   PRINT(0)("ModelCount %d - ", this->models.size());
     353  this->debugNode();
     354  PRINT(0)("List: %s ; ModelCount %d - ", ObjectManager::OMListToString(this->objectListNumber) , this->models.size());
    354355  for (unsigned int i = 0; i < this->models.size(); i++)
    355356  {
  • branches/network/src/world_entities/world_entity.h

    r6415 r6417  
    6161
    6262
    63   void debugWE();
     63  void debugWE() { this->debugEntity(); };  ///FIXME
     64  void debugEntity() const;
     65
    6466
    6567  /* @returns the Count of Faces on this WorldEntity */
Note: See TracChangeset for help on using the changeset viewer.