# Rally Rush: src/shield_powerup.hpp Source File

Loading...
Searching...
No Matches
shield_powerup.hpp
Go to the documentation of this file.
#ifndef SHIELD_POWERUP_HPP
#define SHIELD_POWERUP_HPP
#include <godot_cpp/classes/area3d.hpp>
namespace godot {
class ShieldPowerup : public Area3D {
GDCLASS(ShieldPowerup, Area3D);
static void _bind_methods();
public:
virtual void _enter_tree() override;
protected:
void body_entered(Node3D *body);
};
}
#endif // !SHIELD_POWERUP_HPP
godot::ShieldPowerup
Object for the player's "shield" powerup. Collision area that destroys all cars that hit it.
Definition shield_powerup.hpp:8
godot::ShieldPowerup::GDCLASS
GDCLASS(ShieldPowerup, Area3D)
godot::ShieldPowerup::body_entered
void body_entered(Node3D *body)
Listener for this Area3D's body_entered observer. If the entered node is an EnemyCar,...
Definition shield_powerup.cpp:14
godot::ShieldPowerup::_bind_methods
static void _bind_methods()
Required to be a valid godot class.
Definition shield_powerup.cpp:6
godot::ShieldPowerup::_enter_tree
virtual void _enter_tree() override
Connect the body_entered observer.
Definition shield_powerup.cpp:10
godot
Definition beacon_powerup.cpp:6