Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxShip.h @ 12412

Last change on this file since 12412 was 12396, checked in by pomselj, 6 years ago

Jesus safed our souls and stopped the crashing. Hallowed be his name and hallowed be his followers sevy and aryo, first of their names, saviors of the andals the raynars and the first nerds. Fourier is love btw

File size: 1.5 KB
RevLine 
[12298]1#ifndef _OrxoBloxShip_H__
2#define _OrxoBloxShip_H__
3
4
[12367]5#include "OrxoBloxPrereqs.h"
[12298]6
7#include "worldentities/pawns/SpaceShip.h"
8#include "tools/Timer.h"
9
10namespace orxonox
11{
12    class _OrxoBloxExport OrxoBloxShip : public SpaceShip
13    {
14        public:
15            OrxoBloxShip(Context* context);
16
17            virtual void tick(float dt) override;
18
19            //no rotation in x and z direction!
[12370]20            //virtual void rotatePitch(const Vector2& value) override{}; // Rotate in pitch direction.
21            //Yaw
[12391]22            virtual void rotatePitch(const Vector2& value) override{}; // Rotate in pitch direction.
[12298]23            virtual void rotateRoll(const Vector2& value) override{}; // Rotate in roll direction.
[12370]24            virtual void boost(bool boost) override; //Override, so that the ship does not shake
[12298]25           
[12391]26           
[12298]27            /*Functions that can be helpful while debugging.
28                - Set a timer so that the function is called for instance every 3s to display the coordinates
29                - Open console with "~`"-key in when you start the Asteroids2D - Minigame.
30            */
31            void showposition();
32            void showorientation();
33
34
35            void toggleImmune()
36            {
37                bImmune = !bImmune;
38            }
39
[12391]40        //protected:
[12298]41        private:
42            OrxoBlox* getGame();
43
44            float width, height;
45            WeakPtr<OrxoBlox> game;
46            bool bImmune;
47            Timer timer;
48            Timer isimmune;
49    };
50}
51
52#endif /* _Asteroids2DShip_H__ */
Note: See TracBrowser for help on using the repository browser.