Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Presentation_FS19/src/modules/pacman/PacmanLaser.cpp @ 12408

Last change on this file since 12408 was 12408, checked in by wiesep, 5 years ago

Merged 3DPacman_FS19

File size: 1.2 KB
RevLine 
[12365]1#include "PacmanLaser.h"
2
3#include "core/CoreIncludes.h"
4#include "BulletDynamics/Dynamics/btRigidBody.h"
5
6namespace orxonox
7{
8    RegisterClass(PacmanLaser);
9
10    /**
11    @brief
12        Constructor. Registers the object and initializes some default values.
13    @param creator
14        The creator of this object.
15    */
16    PacmanLaser::PacmanLaser(Context* context) : ControllableEntity(context)
17    {
[12380]18        RegisterObject(PacmanLaser);
[12365]19        this->setCollisionType(CollisionType::None);
20    }
21
22    /**
23    @brief
24        Destructor. Destroys controller, if present.
25    */
26    PacmanLaser::~PacmanLaser()
27    {
28        // Deletes the controller if the object was initialized and the pointer to the controller is not NULL.
29    }
30
31    /**
32    @brief
33        Method for creating a AutonomousDrone through XML.
34    */
[12380]35    void PacmanLaser::XMLPort(Element& xmlelement, XMLPort::Mode mode)
[12365]36    {
[12380]37        SUPER(PacmanLaser, XMLPort, xmlelement, mode);
[12365]38    }
39
40
41    void PacmanLaser::tick(float dt)
42    {
[12380]43        SUPER(PacmanLaser, tick, dt);
[12365]44    }
45
46    void PacmanLaser::resetPacmanLaser(){
47        resetposition = this->getPosition();
[12389]48        resetposition.y = -20000;
[12365]49        this->setPosition(resetposition);
50    }
51}
Note: See TracBrowser for help on using the repository browser.