34 #ifndef _DodgeRaceShip_H__ 35 #define _DodgeRaceShip_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;
78 virtual void death()
override;
90 } velocity, desiredVelocity;
Definition: DodgeRace.h:65
float x
Definition: DodgeRaceShip.h:88
float lastTimeLeft
Definition: DodgeRaceShip.h:85
Definition: CorePrereqs.h:309
WeakPtr< WorldEntity > lastEntity
Definition: DodgeRaceShip.h:83
Shared library macros, enums, constants and forward declarations for the DodgeRace module ...
Camera * camera
Definition: DodgeRaceShip.h:84
WeakPtr< DodgeRace > game
Definition: DodgeRaceShip.h:82
Declaration of the XMLPort helper classes and macros.
virtual void rotateRoll(const Vector2 &value) override
Rotate in roll direction.
Definition: DodgeRaceShip.h:68
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
The SpaceShip is the principal entity through which the player interacts with the game...
Definition: SpaceShip.h:90
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
bool isFireing
Definition: DodgeRaceShip.h:75
virtual void rotateYaw(const Vector2 &value) override
Rotate in yaw direction.
Definition: DodgeRaceShip.h:64
float speed
Definition: DodgeRaceShip.h:74
Definition: DodgeRaceShip.h:49
virtual void rotatePitch(const Vector2 &value) override
Rotate in pitch direction.
Definition: DodgeRaceShip.h:65
#define _DodgeRaceExport
Definition: DodgeRacePrereqs.h:60
Definition: DodgeRaceShip.h:86
float y
Definition: DodgeRaceShip.h:89