- Timestamp:
- May 4, 2018, 11:22:50 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/PacmanPointAfraid.cc
r11933 r11939 27 27 */ 28 28 29 #include "PacmanPoint Sphere.h"29 #include "PacmanPointAfraid.h" 30 30 31 31 #include "core/CoreIncludes.h" … … 34 34 namespace orxonox 35 35 { 36 RegisterClass(PacmanPoint Sphere);36 RegisterClass(PacmanPointAfraid); 37 37 38 38 /** … … 42 42 The creator of this object. 43 43 */ 44 PacmanPoint Sphere::PacmanPointSphere(Context* context) : ControllableEntity(context)44 PacmanPointAfraid::PacmanPointAfraid(Context* context) : ControllableEntity(context) 45 45 { 46 RegisterObject(PacmanPoint Sphere);46 RegisterObject(PacmanPointAfraid); 47 47 this->setCollisionType(CollisionType::None); 48 48 } … … 52 52 Destructor. Destroys controller, if present. 53 53 */ 54 PacmanPoint Sphere::~PacmanPointSphere()54 PacmanPointAfraid::~PacmanPointAfraid() 55 55 { 56 56 // Deletes the controller if the object was initialized and the pointer to the controller is not NULL. … … 61 61 Method for creating a AutonomousDrone through XML. 62 62 */ 63 void PacmanPoint Sphere::XMLPort(Element& xmlelement, XMLPort::Mode mode)63 void PacmanPointAfraid::XMLPort(Element& xmlelement, XMLPort::Mode mode) 64 64 { 65 SUPER(PacmanPoint Sphere, XMLPort, xmlelement, mode);65 SUPER(PacmanPointAfraid, XMLPort, xmlelement, mode); 66 66 } 67 67 68 68 69 void PacmanPoint Sphere::tick(float dt)69 void PacmanPointAfraid::tick(float dt) 70 70 { 71 SUPER(PacmanPoint Sphere, tick, dt);71 SUPER(PacmanPointAfraid, tick, dt); 72 72 } 73 73 74 bool PacmanPoint Sphere::taken(Vector3 playerpos)74 bool PacmanPointAfraid::taken(Vector3 playerpos) 75 75 { 76 76 if((abs(this->resetposition.x - playerpos.x)<0.1) && (abs(this->resetposition.z - playerpos.z)<0.1)){ … … 83 83 84 84 85 void PacmanPoint Sphere::resetPacmanPointSphere(){85 void PacmanPointAfraid::resetPacmanPointAfraid(){ 86 86 this->setPosition(resetposition); 87 87 }
Note: See TracChangeset
for help on using the changeset viewer.