VEGO-Engine
0.1
Loading...
Searching...
No Matches
PickupManager.h
1
#pragma once
2
#include <SDL3/SDL_render.h>
3
#include <SDL3_mixer/SDL_mixer.h>
4
#include <map>
5
#include <string>
6
#include <functional>
7
8
#include "Entity.h"
9
#include "SoundEffects.h"
10
11
class
Vector2D
;
12
class
Manager
;
13
14
class
PickupManager
15
{
16
public
:
17
18
PickupManager(
Manager
* manager);
19
~PickupManager();
20
21
void
createPowerup(
Vector2D
pos, std::function<
void
(
Entity
*)> pickupFunc,
Textures
texture);
22
23
Vector2D
calculateSpawnPosition();
24
25
private
:
26
27
Manager
* man;
28
};
Entity
Main class for any object in game, stores associations, labeling and components.
Definition
Entity.h:35
Manager
Is responsible for managing all entities.
Definition
Manager.h:23
Textures
Forward declaration of the Textures enum class.
Vector2D
Definition
Vector2D.h:7
include
PickupManager.h
Generated by
1.13.2