# Rally Rush: src/enemy_spawnpoint.hpp Source File

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