Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 6, 2006, 3:23:36 PM (19 years ago)
Author:
bensch
Message:

network: some debug functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/world_entity.cc

    r6341 r6415  
    3535    ->defaultValues(2, "models/ships/fighter.obj", 1.0);
    3636
     37SHELL_COMMAND(debugEntity, WorldEntity, debugWE);
    3738
    3839/**
     
    343344}
    344345
     346
     347/**
     348 * Debug the WorldEntity
     349 */
     350void WorldEntity::debugWE()
     351{
     352  PRINT(0)("WorldEntity %s::%s  (DEBUG)\n", this->getClassName(), this->getName());
     353  PRINT(0)("ModelCount %d - ", this->models.size());
     354  for (unsigned int i = 0; i < this->models.size(); i++)
     355  {
     356    if (models[i] != NULL)
     357      PRINT(0)(" : %d:%s", i, this->models[i]->getName());
     358  }
     359  PRINT(0)("\n");
     360
     361}
     362
     363
    345364/**
    346365 * Writes data from network containing information about the state
Note: See TracChangeset for help on using the changeset viewer.