34 #ifndef _RocketOld_H__ 35 #define _RocketOld_H__ 48 class ConeCollisionShape;
64 virtual void tick(
float dt)
override;
66 virtual bool collidesAgainst(
WorldEntity* otherObject,
const btCollisionShape* cs, btManifoldPoint& contactPoint)
override;
67 virtual void destroyObject(
void)
override;
68 void destructionEffect();
72 virtual void moveUpDown(
const Vector2& value)
override {}
74 virtual void rotateYaw(
const Vector2& value)
override;
75 virtual void rotatePitch(
const Vector2& value)
override;
76 virtual void rotateRoll(
const Vector2& value)
override;
83 { this->moveFrontBack(Vector2(value, 0)); }
89 { this->moveRightLeft(Vector2(value, 0)); }
95 { this->moveUpDown(Vector2(value, 0)); }
102 { this->rotateYaw(Vector2(value, 0)); }
108 { this->rotatePitch(Vector2(value, 0)); }
114 { this->rotateRoll(Vector2(value, 0)); }
116 virtual void setShooter(
Pawn* shooter)
override;
118 virtual void fired(
unsigned int firemode)
override;
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
Vector3 localAngularVelocity_
Variable to temporarily store accumulated steering command input.
Definition: RocketOld.h:121
void moveFrontBack(float value)
Moves the RocketOld in the Front/Back-direction by the specifed amount.
Definition: RocketOld.h:82
Timer destroyTimer_
Timer to destroy the projectile after its lifetime has run out.
Definition: RocketOld.h:125
WeakPtr< PlayerInfo > player_
The player that controls the RocketOld.
Definition: RocketOld.h:123
The WorldSound class is to be used for sounds with position and orientation.
Definition: WorldSound.h:44
virtual void moveUpDown(const Vector2 &value) override
Definition: RocketOld.h:72
void rotateRoll(float value)
Rotates the RocketOld around the z-axis by the specifed amount.
Definition: RocketOld.h:113
float lifetime_
The time the projectile exists.
Definition: RocketOld.h:126
Shared library macros, enums, constants and forward declarations for the weapons module ...
Interface for receiving window events.
Definition: RadarViewable.h:48
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
virtual void moveRightLeft(const Vector2 &value) override
Definition: RocketOld.h:71
virtual void moveFrontBack(const Vector2 &value) override
Definition: RocketOld.h:70
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
Declaration of the Timer class, used to call functions after a given time-interval.
RocketOld that can be steered by the player.
Definition: RocketOld.h:58
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
void rotatePitch(float value)
Rotates the RocketOld around the x-axis by the specifed amount.
Definition: RocketOld.h:107
void moveUpDown(float value)
Moves the RocketOld in the Up/Down-direction by the specifed amount.
Definition: RocketOld.h:94
void moveRightLeft(float value)
Moves the RocketOld in the Right/Left-direction by the specifed amount.
Definition: RocketOld.h:88
Implementation of the BasicProjectile class.
Baseclass of all projectiles.
Definition: BasicProjectile.h:54
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
void rotateYaw(float value)
Rotates the RocketOld around the y-axis by the specifed amount.
Definition: RocketOld.h:101
The ControllableEntity is derived from the orxonox::MobileEntity.
Definition: ControllableEntity.h:48
WorldSound * defSndWpnEngine_
Engine sound.
Definition: RocketOld.h:128
#define _WeaponsExport
Definition: WeaponsPrereqs.h:60
WorldSound * defSndWpnLaunch_
Launch sound.
Definition: RocketOld.h:129