Changeset 6815
- Timestamp:
- May 2, 2010, 1:39:33 PM (15 years ago)
- Location:
- code/branches/rocket/src/modules/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/rocket/src/modules/weapons/RocketController.cc
r6814 r6815 31 31 #include "util/Math.h" 32 32 #include "weapons/projectiles/SimpleRocket.h" 33 #include "util/Debug.h" 33 34 34 35 … … 41 42 RocketController::RocketController(BaseObject* creator) : Controller(creator) 42 43 { 44 COUT(0)<< "RocketController constructed\n"; 43 45 44 46 RegisterObject(RocketController); … … 69 71 70 72 RocketController::~RocketController() { 71 72 delete this ->getControllableEntity();73 COUT(0)<< "RocketController destroyed\n"; 74 delete this; 73 75 74 76 } -
code/branches/rocket/src/modules/weapons/projectiles/SimpleRocket.cc
r6813 r6815 41 41 #include "weapons/RocketController.h" 42 42 #include "sound/WorldSound.h" 43 #include "util/Debug.h" 43 44 44 45 namespace orxonox … … 58 59 this->bDestroy_ = false; 59 60 this->lifetime_ = 100; 61 COUT(0)<< "simplerocket constructed\n"; 60 62 //this->camera_ = null; 61 63 //RocketController* myRController = new RocketController(this); … … 102 104 SimpleRocket::~SimpleRocket() 103 105 { 106 COUT(0)<< "simplerocket destroyed\n"; 107 delete this->getController(); 104 108 } 105 109
Note: See TracChangeset
for help on using the changeset viewer.