Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2018, 4:42:43 PM (7 years ago)
Author:
adamc
Message:

first final draft

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ScriptableController_FS18/src/orxonox/scriptablecontroller/scriptable_controller_api.cc

    r11999 r12006  
    99//#include "../modules/objects/collisionshapes/SphereCollisionShape.h"
    1010#include "graphics/Model.h"
    11 #include "worldentities/pawns/AAAAutonomousDrone.h"
     11#include "worldentities/pawns/ScriptableControllerDrone.h"
    1212
    1313
     
    210210       
    211211
    212         Identifier *identifier = ClassByString("AAAAutonomousDrone");
     212        Identifier *identifier = ClassByString("ScriptableControllerDrone");
    213213       
    214214       
     
    277277        Pawn* pawn = this->controller_->getPawnByID(id);
    278278        //Attach to pawn
    279         AAAAutonomousDrone* drone = new AAAAutonomousDrone(pawn->getContext()); // this is neccessary because the projectiles fired need a valid creator for the particlespawner (when colliding against something)
    280        
    281         drone->addTemplate("AAAAutonomousDroneTemplate"); //AAAAutonomousDroneTemplate spaceshipescort
     279        ScriptableControllerDrone* drone = new ScriptableControllerDrone(pawn->getContext()); // this is neccessary because the projectiles fired need a valid creator for the particlespawner (when colliding against something)
     280       
     281        drone->addTemplate("ScriptableControllerDroneTemplate"); //ScriptableControllerDroneTemplate spaceshipescort
    282282
    283283        Vector3 spawnPosition = pawn->getWorldPosition() + Vector3(30,0,-30);
Note: See TracChangeset for help on using the changeset viewer.