R-Type  2
Doom but in better
Loading...
Searching...
No Matches
SpawnSystem.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "Components.hpp"
4
5class Registry;
6
7#define DEFAULT_TIMER 10.0f
8
19void spawn_monster(Registry &r, const float pos_x, const float pos_y);
20
31void spawn_obstacle(Registry &r, const float pos_x, const float pos_y);
32
45void spawn_player(Registry &r, const float pos_x, const float pos_y, const uint32_t client_id, const std::string &username);
46
58void spawn_missile(Registry &r, const float pos_x, const float pos_y, const type_enum owner);
59
71void spawn_powerup(Registry &r, const float pos_x, const float pos_y, const loot_enum loot);
72
82
loot_enum
Defines the different types of loot that can be dropped in the game.
Definition LootDrop.hpp:10
void spawn_powerup(Registry &r, const float pos_x, const float pos_y, const loot_enum loot)
Spawns a power-up at the specified position.
void spawn_obstacle(Registry &r, const float pos_x, const float pos_y)
Spawns an obstacle at the specified position.
void spawn_missile(Registry &r, const float pos_x, const float pos_y, const type_enum owner)
Spawns a missile at the specified position.
void spawn_monster_system(Registry &r)
Spawns a monster periodically based on the spawn timer.
void spawn_monster(Registry &r, const float pos_x, const float pos_y)
Spawns a monster at the specified position.
void spawn_player(Registry &r, const float pos_x, const float pos_y, const uint32_t client_id, const std::string &username)
Spawns a player with the specified username at the given position.
void spawn_obstacle_system(Registry &r)
Spawns obstacles periodically based on the spawn timer.
Registry * r
Definition Tests.cpp:4
type_enum
Defines the different types of entities in the game.
Definition Type.hpp:11
Manages entities and their associated components, enabling the creation, deletion,...
Definition Registry.hpp:23