Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8220 in orxonox.OLD for branches/bsp_model/src/world_entities


Ignore:
Timestamp:
Jun 7, 2006, 11:44:50 PM (18 years ago)
Author:
patrick
Message:

bsp: collision detection doesn't work at all

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/world_entities/bsp_entity.cc

    r8219 r8220  
    1010
    1111   ### File Specific:
    12    main-programmer: ...
     12   main-programmer: Claudio Botta
    1313   co-programmer: ...
    1414*/
     
    2727{
    2828  this->init();
     29
    2930  if (root != NULL)
    3031    this->loadParams(root);
     
    3738BspEntity::~BspEntity ()
    3839{
    39 
     40  if( this->bspManager)
     41    delete this->bspManager;
    4042}
    41 
    42 void BspEntity::setName(const std::string& name)
    43 {
    44   PRINTF(0)("+++++++++++ LOADING NAME %s\n", name.c_str());
    45 
    46   this->bspManager->load(name.c_str(), 0.1f);
    47 }
    48 
    4943
    5044
     
    5549void BspEntity::init()
    5650{
    57   this->bspManager = new BspManager(this);
    5851  this->setClassID(CL_BSP_ENTITY, "BspEntity");
    5952
     53  this->bspManager = new BspManager(this);
    6054  this->toList(OM_ENVIRON);
    6155
     
    6357   * @todo: Write CL_BSP_ENTITY INTO THE src/defs/class_id.h (your own definition)
    6458   */
     59}
    6560
     61
     62void BspEntity::setName(const std::string& name)
     63{
     64  PRINTF(0)("+++++++++++ LOADING NAME %s\n", name.c_str());
     65
     66  this->bspManager->load(name.c_str(), 0.1f);
    6667}
    6768
Note: See TracChangeset for help on using the changeset viewer.