# Rally Rush: src/exit_door.hpp Source File

Loading...
Searching...
No Matches
exit_door.hpp
Go to the documentation of this file.
#ifndef EXIT_DOOR_HPP
#define EXIT_DOOR_HPP
#include "godot_cpp/classes/animation_player.hpp"
#include <godot_cpp/classes/node3d.hpp>
namespace godot {
class ExitDoor : public Node3D {
GDCLASS(ExitDoor, Node3D);
static void _bind_methods();
public:
virtual void _enter_tree() override;
void all_keys_found();
private:
AnimationPlayer *player{nullptr};
};
}
#endif // !EXIT_DOOR_HPP
godot::ExitDoor
Listener for the all_keys_found Observer. Plays the "open" animation when the observer is broadcast.
Definition exit_door.hpp:9
godot::ExitDoor::_bind_methods
static void _bind_methods()
Required to be a valid godot class.
Definition exit_door.cpp:7
godot::ExitDoor::GDCLASS
GDCLASS(ExitDoor, Node3D)
godot::ExitDoor::player
AnimationPlayer * player
Definition exit_door.hpp:19
godot::ExitDoor::all_keys_found
void all_keys_found()
Listener for all_keys_found.
Definition exit_door.cpp:16
godot::ExitDoor::_enter_tree
virtual void _enter_tree() override
Fetch animation player and connect to all_keys_found observer of RallyRushGameMode.
Definition exit_door.cpp:11
godot
Definition beacon_powerup.cpp:6