Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 4, 2018, 11:22:50 PM (7 years ago)
Author:
dreherm
Message:

Afraid Test 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS18/src/modules/pacman/PacmanPointAfraid.cc

    r11933 r11939  
    2727 */
    2828
    29 #include "PacmanPointSphere.h"
     29#include "PacmanPointAfraid.h"
    3030
    3131#include "core/CoreIncludes.h"
     
    3434namespace orxonox
    3535{
    36     RegisterClass(PacmanPointSphere);
     36    RegisterClass(PacmanPointAfraid);
    3737
    3838    /**
     
    4242        The creator of this object.
    4343    */
    44     PacmanPointSphere::PacmanPointSphere(Context* context) : ControllableEntity(context)
     44    PacmanPointAfraid::PacmanPointAfraid(Context* context) : ControllableEntity(context)
    4545    {
    46         RegisterObject(PacmanPointSphere);
     46        RegisterObject(PacmanPointAfraid);
    4747        this->setCollisionType(CollisionType::None);
    4848    }
     
    5252        Destructor. Destroys controller, if present.
    5353    */
    54     PacmanPointSphere::~PacmanPointSphere()
     54    PacmanPointAfraid::~PacmanPointAfraid()
    5555    {
    5656        // Deletes the controller if the object was initialized and the pointer to the controller is not NULL.
     
    6161        Method for creating a AutonomousDrone through XML.
    6262    */
    63     void PacmanPointSphere::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     63    void PacmanPointAfraid::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    6464    {
    65         SUPER(PacmanPointSphere, XMLPort, xmlelement, mode);
     65        SUPER(PacmanPointAfraid, XMLPort, xmlelement, mode);
    6666    }
    6767
    6868
    69     void PacmanPointSphere::tick(float dt)
     69    void PacmanPointAfraid::tick(float dt)
    7070    {
    71         SUPER(PacmanPointSphere, tick, dt);
     71        SUPER(PacmanPointAfraid, tick, dt);
    7272    }
    7373
    74     bool PacmanPointSphere::taken(Vector3 playerpos)
     74    bool PacmanPointAfraid::taken(Vector3 playerpos)
    7575    {
    7676      if((abs(this->resetposition.x - playerpos.x)<0.1) && (abs(this->resetposition.z - playerpos.z)<0.1)){
     
    8383
    8484
    85     void PacmanPointSphere::resetPacmanPointSphere(){
     85    void PacmanPointAfraid::resetPacmanPointAfraid(){
    8686        this->setPosition(resetposition);
    8787    }
Note: See TracChangeset for help on using the changeset viewer.