Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6803


Ignore:
Timestamp:
Apr 29, 2010, 2:10:18 PM (15 years ago)
Author:
gnadler
Message:
 
Location:
code/branches/rocket/src
Files:
2 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/rocket/src/modules/weapons/CMakeLists.txt

    r5781 r6803  
    11SET_SOURCE_FILES(WEAPONS_SRC_FILES
    22  MuzzleFlash.cc
     3  RocketController.cc
    34)
    45
  • code/branches/rocket/src/modules/weapons/projectiles/CMakeLists.txt

    r6780 r6803  
    55  LightningGunProjectile.cc
    66  Rocket.cc
     7  SimpleRocket.cc
    78)
  • code/branches/rocket/src/modules/weapons/projectiles/SimpleRocket.cc

    r6778 r6803  
    3939#include "infos/PlayerInfo.h"
    4040#include "controllers/Controller.h"
    41 #include "controllers/RocketController.h"
     41#include "weapons/RocketController.h"
    4242#include "sound/WorldSound.h"
    4343
     
    5959        this->lifetime_ = 100;
    6060                //this->camera_ = null;
    61                 RocketController* myController = new RocketController();
    62                 this->setController(myController));
    63                 myController->setControllableEntity(this);
     61                RocketController* myRController = new RocketController(this);
     62                this->setController(myRController);
     63                myRController->setRocket(this, myRController);
     64               
     65                //this->getController()->setControllableEntity(this);
     66                //myController->setControllableEntity(this);
    6467                //this->getController()->setControllableEntity(this);
    6568        //this->controllableEntity_->setController(this->controller_);
     
    9093            this->destroyTimer_.setTimer(this->lifetime_, false, createExecutor(createFunctor(&SimpleRocket::destroyObject, this)));
    9194        }
    92                 this->
    9395
    9496    }
Note: See TracChangeset for help on using the changeset viewer.