Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 18, 2017, 12:40:00 PM (6 years ago)
Author:
patricwi
Message:

rolled back to functional without 2 branches

Location:
code/branches/Presentation_HS17
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17

  • code/branches/Presentation_HS17/src/orxonox/worldentities/pawns/Pawn.cc

    r11686 r11690  
    5050#include "sound/WorldSound.h"
    5151#include "core/object/ObjectListIterator.h"
    52 #include "Level.h"
    53 #include "scriptablecontroller/scriptable_controller.h"
    5452
    5553#include "controllers/FormationController.h"
     
    162160
    163161        XMLPortParam ( RadarViewable, "radarname", setRadarName, getRadarName, xmlelement, mode );
    164 
    165         if(!this->id_.empty() && this->getLevel() != nullptr)
    166             this->getLevel()->getScriptableController()->registerPawn(this->id_, this);
    167162    }
    168163
     
    287282        {
    288283            // Health-damage cannot be absorbed by shields.
    289             // Shield-damage only reduces shield health.
     284            // Shield-damage only reduces shield health. 
    290285            // Normal damage can be (partially) absorbed by shields.
    291286
     
    307302                this->setHealth(this->health_ - (damage - shielddamage) - healthdamage);
    308303            }
    309             this->getLevel()->getScriptableController()->pawnHit(this, originator, this->health_, this->shieldHealth_);
    310304
    311305            this->lastHitOriginator_ = originator;
     
    408402            }
    409403        }
    410 
    411         this->getLevel()->getScriptableController()->pawnKilled(this);
    412404    }
    413405    void Pawn::goWithStyle()
     
    633625        {
    634626            // delete all debug models
    635             for(Model* model : debugWeaponSlotModels_)
     627            for(Model* model : debugWeaponSlotModels_) 
    636628            {
    637629                model->destroy();
Note: See TracChangeset for help on using the changeset viewer.