Rally Rush
Loading...
Searching...
No Matches
enemy_spawnpoint.hpp
Go to the documentation of this file.
1#ifndef ENEMY_SPAWNPOINT_HPP
2#define ENEMY_SPAWNPOINT_HPP
3
4#include <godot_cpp/classes/node3d.hpp>
5
6namespace godot {
8class EnemySpawnpoint : public Node3D {
11 static void _bind_methods();
12public:
14 bool player_can_see() const;
15public:
17 void set_keys(bool val);
19 bool get_keys() const;
21 void set_cars(bool val);
23 bool get_cars() const;
25 void set_drones(bool val);
27 bool get_drones() const;
28private:
29 bool keys{true};
30 bool cars{true};
31 bool drones{true};
32};
33}
34
35#endif // !ENEMY_SPAWNPOINT_HPP
Child node to Spawner denoting a place where a car, drone or key can be spawned.
Definition enemy_spawnpoint.hpp:8
bool get_keys() const
If true, this spawnpoint will be considered as a possible spawnpoint for keys.
Definition enemy_spawnpoint.cpp:28
bool player_can_see() const
returns true if the player can reasonably see this spawnpoint.
Definition enemy_spawnpoint.cpp:18
bool keys
Definition enemy_spawnpoint.hpp:29
void set_keys(bool val)
If true, this spawnpoint will be considered as a possible spawnpoint for keys.
Definition enemy_spawnpoint.cpp:24
bool drones
Definition enemy_spawnpoint.hpp:31
void set_drones(bool val)
If true, this spawnpoint will be considered as a possible spawnpoint for drones.
Definition enemy_spawnpoint.cpp:40
bool get_cars() const
If true, this spawnpoint will be considered as a possible spawnpoint for cars.
Definition enemy_spawnpoint.cpp:36
bool get_drones() const
If true, this spawnpoint will be considered as a possible spawnpoint for drones.
Definition enemy_spawnpoint.cpp:44
bool cars
Definition enemy_spawnpoint.hpp:30
GDCLASS(EnemySpawnpoint, Node3D)
void set_cars(bool val)
If true, this spawnpoint will be considered as a possible spawnpoint for cars.
Definition enemy_spawnpoint.cpp:32
static void _bind_methods()
register editor properties
Definition enemy_spawnpoint.cpp:11
Definition beacon_powerup.cpp:6