Changeset 10897 for code/branches/particleEffectsHS15/src/modules/weapons
- Timestamp:
- Nov 30, 2015, 3:56:38 PM (9 years ago)
- Location:
- code/branches/particleEffectsHS15/src/modules/weapons/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/particleEffectsHS15/src/modules/weapons/projectiles/MineProjectile.cc
r10889 r10897 35 35 36 36 #include "core/CoreIncludes.h" 37 #include "core/command/Executor.h" 38 #include "core/EventIncludes.h" 37 39 #include "graphics/Model.h" 38 #include "core/command/Executor.h"39 40 40 41 namespace orxonox … … 95 96 distanceTrigger_->addTarget("Pawn"); 96 97 distanceTrigger_->setStayActive(true); 98 99 this->addEventSource(distanceTrigger_, "explode"); 97 100 } 98 101 } … … 100 103 MineProjectile::~MineProjectile() 101 104 { 102 /*if (modelCore_ != NULL)105 if (this->isInitialized()) 103 106 { 104 modelCore_->destroy(); 105 }*/ 106 /*if (distanceTrigger_ != NULL) 107 { 108 distanceTrigger_->destroy(); 109 }*/ 107 /*if (modelCore_ != NULL) 108 { 109 modelCore_->destroy(); 110 }*/ 111 if (distanceTrigger_) 112 distanceTrigger_->destroy(); 113 } 114 } 115 116 void MineProjectile::XMLEventPort(Element& xmlelement, XMLPort::Mode mode) 117 { 118 SUPER(MineProjectile, XMLEventPort, xmlelement, mode); 119 XMLPortEventState(MineProjectile, BaseObject, "explode", Explode, xmlelement, mode); 110 120 } 111 121 -
code/branches/particleEffectsHS15/src/modules/weapons/projectiles/MineProjectile.h
r10889 r10897 56 56 virtual ~MineProjectile(); 57 57 58 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); 59 58 60 virtual void setMaxTimeUntilExplosion(float maxTimeUntilExplosion); 59 61 virtual void setTimeUntilActivation(float timeUntilActivation);
Note: See TracChangeset
for help on using the changeset viewer.