34 #ifndef _Asteroids2DShip_H__ 35 #define _Asteroids2DShip_H__ 50 virtual void tick(
float dt)
override;
54 virtual void rotateRoll(
const Vector2& value)
override{};
56 virtual void updateLevel();
58 virtual inline bool collidesAgainst(
WorldEntity* otherObject,
const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint)
override;
65 void showorientation();
74 virtual void death()
override;
Definition: Asteroids2D.h:51
Timer isimmune
Definition: Asteroids2DShip.h:83
Definition: CorePrereqs.h:309
void toggleImmune()
Definition: Asteroids2DShip.h:68
WeakPtr< Asteroids2D > game
Definition: Asteroids2DShip.h:80
Timer timer
Definition: Asteroids2DShip.h:82
Definition: Asteroids2DShip.h:45
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
virtual void rotatePitch(const Vector2 &value) override
Rotate in pitch direction.
Definition: Asteroids2DShip.h:53
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
Declaration of the Timer class, used to call functions after a given time-interval.
Shared library macros, enums, constants and forward declarations for the Asteroids2D module ...
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
virtual void rotateRoll(const Vector2 &value) override
Rotate in roll direction.
Definition: Asteroids2DShip.h:54
#define _Asteroids2DExport
Definition: Asteroids2DPrereqs.h:60
float width
Definition: Asteroids2DShip.h:79
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
bool bImmune
Definition: Asteroids2DShip.h:81