Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/3DPacman_FS19/src/modules/pacman/PacmanLaser.cpp @ 12373

Last change on this file since 12373 was 12365, checked in by rueegseb, 6 years ago

Laser boom boom

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    {
18        RegisterObject(PacmanPointSphere);
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    */
35    void PacmanPointSphere::XMLPort(Element& xmlelement, XMLPort::Mode mode)
36    {
37        SUPER(PacmanPointSphere, XMLPort, xmlelement, mode);
38    }
39
40
41    void PacmanLaser::tick(float dt)
42    {
43        SUPER(PacmanPointSphere, tick, dt);
44    }
45
46    void PacmanLaser::resetPacmanLaser(){
47        resetposition = this->getPosition();
48        resetposition.y = -50;
49        this->setPosition(resetposition);
50    }
51}
Note: See TracBrowser for help on using the repository browser.