Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11928 for code/branches


Ignore:
Timestamp:
May 3, 2018, 1:46:20 PM (7 years ago)
Author:
adamc
Message:

Level & Script backup

Location:
code/branches/ScriptableController_FS18
Files:
12 added
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ScriptableController_FS18/src/orxonox/scriptablecontroller/scriptable_controller_api.cc

    r11911 r11928  
    152152        Identifiable *obj = identifier->fabricate(this->controller_->getWorldEntityByID("Player")->getContext());
    153153
     154        orxout(user_error) << "First hit!" << std::endl;
     155
    154156        if(obj->isA(ClassIdentifier<WorldEntity>::getIdentifier()))
    155157        {
     
    173175        }
    174176
     177        orxout(user_error) << "Second hit!" << std::endl;
     178
    175179        if(entity->isA(ClassIdentifier<MobileEntity>::getIdentifier()))
    176180            this->controller_->registerMobileEntity(id, orxonox_cast<MobileEntity*>(entity));
     
    180184
    181185        this->controller_->registerWorldEntity(id, orxonox_cast<WorldEntity*>(entity));
     186
     187        orxout(user_error) << "Third and final hit!" << std::endl;
    182188    }
    183189
     
    379385    }
    380386
     387
     388
     389
     390
    381391    void ScriptableControllerAPI::moveControllableEntity(std::string id, double x, double y, double z)
    382392    {
     
    387397            return;
    388398        }
    389 
    390 
    391399
    392400
     
    395403        ControllableEntity *controllable_entity;
    396404       
     405
    397406        if(identifier->isA(ClassIdentifier<ControllableEntity>::getIdentifier()))
    398407        {
    399408            controllable_entity = orxonox_cast<ControllableEntity*>(entity);
     409
     410            orxout(user_warning) << "Accessed " << id << std::endl;
    400411
    401412            controllable_entity->moveFrontBack(x);
Note: See TracChangeset for help on using the changeset viewer.