34 #ifndef _RocketController_H__ 35 #define _RocketController_H__ 57 virtual void tick(
float dt)
override;
63 {
return this->rocket_; };
70 { this->target_ = target; }
73 void updateTargetPosition();
74 void moveToPosition(
const Vector3& target);
WeakPtr< PlayerInfo > player_
The player the rocket belongs to.
Definition: RocketController.h:79
WeakPtr< WorldEntity > target_
The target.
Definition: RocketController.h:81
Declaration of the Tickable interface.
SimpleRocket * getRocket() const
Get the rocket that is controlled by this controller.
Definition: RocketController.h:62
Shared library macros, enums, constants and forward declarations for the weapons module ...
Controller for the SimpleRocket (target seeking)
Definition: RocketController.h:51
SimpleRocket * rocket_
The Rocket it controls.
Definition: RocketController.h:77
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
SimpleRocket is a target seeking, intelligent rocket.
Definition: SimpleRocket.h:59
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Definition: Controller.h:38
Vector3 targetPosition_
The position of the target.
Definition: RocketController.h:78
void setTarget(WorldEntity *target)
Set the target of the rocket.
Definition: RocketController.h:69
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
#define _WeaponsExport
Definition: WeaponsPrereqs.h:60