Rally Rush
Loading...
Searching...
No Matches
shield_powerup.hpp
Go to the documentation of this file.
1#ifndef SHIELD_POWERUP_HPP
2#define SHIELD_POWERUP_HPP
3
4#include <godot_cpp/classes/area3d.hpp>
5
6namespace godot {
8class ShieldPowerup : public Area3D {
11 static void _bind_methods();
12public:
14 virtual void _enter_tree() override;
15protected:
17 void body_entered(Node3D *body);
18};
19}
20
21#endif // !SHIELD_POWERUP_HPP
Object for the player's "shield" powerup. Collision area that destroys all cars that hit it.
Definition shield_powerup.hpp:8
GDCLASS(ShieldPowerup, Area3D)
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
static void _bind_methods()
Required to be a valid godot class.
Definition shield_powerup.cpp:6
virtual void _enter_tree() override
Connect the body_entered observer.
Definition shield_powerup.cpp:10
Definition beacon_powerup.cpp:6