34 #ifndef _OrxyRoadShip_H__ 35 #define _OrxyRoadShip_H__ 54 virtual void tick(
float dt)
override;
57 virtual void moveFrontBack(
const Vector2& value)
override;
58 virtual void moveRightLeft(
const Vector2& value)
override;
61 virtual void boost(
bool bBoost)
override;
64 virtual void rotateYaw(
const Vector2& value)
override{};
68 virtual void rotateRoll(
const Vector2& value)
override{
if (getGame())
if (getGame()->bEndGame) getGame()->end();};
70 virtual void updateLevel();
72 virtual inline bool collidesAgainst(
WorldEntity* otherObject,
const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint)
override;
74 float speed, damping, posforeward;
79 virtual void death()
override;
91 } velocity, desiredVelocity;
Definition: CorePrereqs.h:309
Camera * camera
Definition: OrxyRoadShip.h:85
#define _OrxyRoadExport
Definition: OrxyRoadPrereqs.h:60
Shared library macros, enums, constants and forward declarations for the OrxyRoad module ...
Declaration of the XMLPort helper classes and macros.
float x
Definition: OrxyRoadShip.h:89
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
WeakPtr< WorldEntity > lastEntity
Definition: OrxyRoadShip.h:84
virtual void rotateYaw(const Vector2 &value) override
Rotate in yaw direction.
Definition: OrxyRoadShip.h:64
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
float speed
Definition: OrxyRoadShip.h:74
The SpaceShip is the principal entity through which the player interacts with the game...
Definition: SpaceShip.h:90
float lastTimeLeft
Definition: OrxyRoadShip.h:86
Definition: OrxyRoadShip.h:87
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Definition: OrxyRoad.h:65
virtual void rotateRoll(const Vector2 &value) override
Rotate in roll direction.
Definition: OrxyRoadShip.h:68
Declaration of the OrxyRoadCenterPoint class.
WeakPtr< OrxyRoad > game
Definition: OrxyRoadShip.h:83
float y
Definition: OrxyRoadShip.h:90
bool isFireing
Definition: OrxyRoadShip.h:75
bool steeredRight
Definition: OrxyRoadShip.h:76
virtual void rotatePitch(const Vector2 &value) override
Rotate in pitch direction.
Definition: OrxyRoadShip.h:65
Definition: OrxyRoadShip.h:49