Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 26, 2008, 5:02:14 PM (17 years ago)
Author:
scheusso
Message:

Made various changes to Classes WorldEntity, Model, SpaceShip,
BulletManager and AmmunitionDump in order to make them really
synchronisable.
I hope, that everythings still working now. I only did some small tests
(ie no segfault when running/starting and acting)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/objects/SpaceShip.cc

    r919 r927  
    5656    {
    5757        RegisterObject(SpaceShip);
     58        this->registerAllVariables();
    5859
    5960        this->setConfigValues();
     
    125126        this->brakeLoop(loop);
    126127*/
    127         this->init();
    128 
     128//         this->create();
     129
     130       
    129131        COUT(3) << "Info: SpaceShip was loaded" << std::endl;
    130132    }
     
    136138    }
    137139
     140    bool SpaceShip::create(){
     141      if(Model::create())
     142        this->init();
     143      else
     144        return false;
     145      return true;
     146    }
     147   
     148    void SpaceShip::registerAllVariables(){
     149      Model::registerAllVariables();
     150     
     151     
     152     
     153    }
     154   
    138155    void SpaceShip::init()
    139156    {
     
    203220    {
    204221        Model::loadParams(xmlElem);
     222        this->create();
    205223/*
    206224        if (xmlElem->Attribute("forward") && xmlElem->Attribute("rotateupdown") && xmlElem->Attribute("rotaterightleft") && xmlElem->Attribute("looprightleft"))
Note: See TracChangeset for help on using the changeset viewer.