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