- Timestamp:
- Dec 18, 2017, 12:40:00 PM (7 years ago)
- Location:
- code/branches/Presentation_HS17
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17
- Property svn:mergeinfo changed
/code/branches/Waypoints_HS17 reverse-merged: 11496,11523,11539,11559,11582,11603,11633,11655,11657,11659,11661,11687 /code/branches/ScriptableController_HS17 removed
- Property svn:mergeinfo changed
-
code/branches/Presentation_HS17/src/orxonox/worldentities/pawns/Pawn.cc
r11686 r11690 50 50 #include "sound/WorldSound.h" 51 51 #include "core/object/ObjectListIterator.h" 52 #include "Level.h"53 #include "scriptablecontroller/scriptable_controller.h"54 52 55 53 #include "controllers/FormationController.h" … … 162 160 163 161 XMLPortParam ( RadarViewable, "radarname", setRadarName, getRadarName, xmlelement, mode ); 164 165 if(!this->id_.empty() && this->getLevel() != nullptr)166 this->getLevel()->getScriptableController()->registerPawn(this->id_, this);167 162 } 168 163 … … 287 282 { 288 283 // Health-damage cannot be absorbed by shields. 289 // Shield-damage only reduces shield health. 284 // Shield-damage only reduces shield health. 290 285 // Normal damage can be (partially) absorbed by shields. 291 286 … … 307 302 this->setHealth(this->health_ - (damage - shielddamage) - healthdamage); 308 303 } 309 this->getLevel()->getScriptableController()->pawnHit(this, originator, this->health_, this->shieldHealth_);310 304 311 305 this->lastHitOriginator_ = originator; … … 408 402 } 409 403 } 410 411 this->getLevel()->getScriptableController()->pawnKilled(this);412 404 } 413 405 void Pawn::goWithStyle() … … 633 625 { 634 626 // delete all debug models 635 for(Model* model : debugWeaponSlotModels_) 627 for(Model* model : debugWeaponSlotModels_) 636 628 { 637 629 model->destroy();
Note: See TracChangeset
for help on using the changeset viewer.