Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 24, 2008, 1:50:47 AM (17 years ago)
Author:
landauf
Message:

Update your media repository and delete keybindings.ini if you want to use boost (space).

  • Added new class "Engine" to control the speed of a SpaceShip (Engine is an Item, MultiStateEngine is a specialized version of Engine)
  • Added FadingBillboard, a billboard with the ability to fade in and out smoothly when activated/deactivated.
  • Several changes in Backlight, it's now a child of FadingBillboard
  • Some changes concerning local control in ControllableEntity
  • Fixed a bug in WorldEntity caused by different destruction order of attached objects on server and client
  • Added a "MainState" to BaseObject. An object has several states (activity, visibility, …) and one of it can be defined as "MainState" in the XML file. Other objects can change this state without knowing which state it really is (used by MultiStateEngine).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/objects/worldentities/WorldEntity.cc

    r2213 r2254  
    7676                delete (*it);
    7777
     78            if (this->parent_)
     79                this->detachFromParent();
     80
    7881            if (this->getScene()->getSceneManager())
    7982                this->getScene()->getSceneManager()->destroySceneNode(this->node_->getName());
     
    100103    void WorldEntity::registerVariables()
    101104    {
     105        REGISTERSTRING(this->mainStateName_, direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedMainState));
     106
    102107        REGISTERDATA(this->bActive_,  direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedActivity));
    103108        REGISTERDATA(this->bVisible_, direction::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::changedVisibility));
     
    122127    void WorldEntity::attach(WorldEntity* object)
    123128    {
     129        if (object == this)
     130        {
     131            COUT(2) << "Warning: Can't attach a WorldEntity to itself." << std::endl;
     132            return;
     133        }
     134
    124135        if (object->getParent())
    125136            object->detachFromParent();
Note: See TracChangeset for help on using the changeset viewer.