Changeset 6417 in orxonox.OLD for branches/network/src
- Timestamp:
- Jan 6, 2006, 4:00:21 PM (19 years ago)
- 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 121 121 PRINTF(4)("SPACESHIP INIT\n"); 122 122 123 //EventHandler::getInstance()->grabEvents(true);123 EventHandler::getInstance()->grabEvents(true); 124 124 125 125 bUp = bDown = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = false; -
branches/network/src/world_entities/weapons/ground_turret.cc
r6341 r6417 119 119 void GroundTurret::draw () const 120 120 { 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 137 123 if (this->left != NULL) 138 124 this->left->draw(); -
branches/network/src/world_entities/world_entity.cc
r6415 r6417 128 128 { 129 129 PRINTF(4)("fetching OBJ file: %s\n", fileName); 130 if ( scaling == 1.0)130 if (true/*scaling == 1.0*/) 131 131 this->setModel((Model*)ResourceManager::getInstance()->load(fileName, OBJ, RP_CAMPAIGN), modelNumber); 132 132 else … … 348 348 * Debug the WorldEntity 349 349 */ 350 void WorldEntity::debug WE()350 void WorldEntity::debugEntity() const 351 351 { 352 352 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()); 354 355 for (unsigned int i = 0; i < this->models.size(); i++) 355 356 { -
branches/network/src/world_entities/world_entity.h
r6415 r6417 61 61 62 62 63 void debugWE(); 63 void debugWE() { this->debugEntity(); }; ///FIXME 64 void debugEntity() const; 65 64 66 65 67 /* @returns the Count of Faces on this WorldEntity */
Note: See TracChangeset
for help on using the changeset viewer.