Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6981 in orxonox.OLD for trunk/src/story_entities


Ignore:
Timestamp:
Feb 2, 2006, 2:45:07 PM (19 years ago)
Author:
bensch
Message:

trunk: some virtuals

Location:
trunk/src/story_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world.cc

    r6878 r6981  
    190190  PRINTF(3)("GameWorld::~GameWorld() - unloading the current GameWorld\n");
    191191
     192  this->dataTank->unloadData();
     193
    192194  if (this->dataXML)
    193195    delete this->dataXML;
    194196
    195   this->dataTank->unloadData();
    196197}
    197198
  • trunk/src/story_entities/game_world_data.cc

    r6863 r6981  
    247247  // erease everything that is left.
    248248  // delete PNode::getNullParent(); // not needed as this is also done in the next step (and also much cleaner)
    249 
     249  const std::list<BaseObject*>* nodeList;
    250250  //secondary cleanup of PNodes;
    251   const std::list<BaseObject*>* nodeList = ClassList::getList(CL_PARENT_NODE);
     251  nodeList = ClassList::getList(CL_PARENT_NODE);
    252252  if (nodeList != NULL)
    253253    while (!nodeList->empty())
    254254      delete nodeList->front();
    255 
    256255  /* remove the player object */
    257256  if( this->localPlayer)
    258257    delete this->localPlayer;
     258
     259//   nodeList = ClassList::getList(CL_GRAPHICS_EFFECT);
     260//   if (nodeList != NULL)
     261//     while (!nodeList->empty())
     262//       delete nodeList->front();
     263//
     264//   nodeList = ClassList::getList(CL_ELEMENT_2D);
     265//   if (nodeList != NULL)
     266//     while (!nodeList->empty())
     267//       delete nodeList->front();
     268
     269
     270
    259271
    260272  // unload the resources !!
  • trunk/src/story_entities/simple_game_menu.h

    r6874 r6981  
    2525  public:
    2626    MenuLayer() {}
    27     ~MenuLayer() {}
     27    virtual ~MenuLayer() {}
    2828
    2929
Note: See TracChangeset for help on using the changeset viewer.