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
11class Vector2D;
12class Manager;
13
14
16class PickupManager
17{
18public:
19
20 PickupManager(Manager* manager);
21 ~PickupManager();
22
28 void createPickupable(Vector2D pos, std::function<void (Entity*)> pickupFunc, Textures texture);
29
30 Vector2D calculateSpawnPosition();
31
32private:
33
34 Manager* man;
35};
Main class for any object in game, stores associations, labeling and components.
Definition Entity.h:35
Is responsible for managing all entities.
Definition Manager.h:23
void createPickupable(Vector2D pos, std::function< void(Entity *)> pickupFunc, Textures texture)
Creates a pickupable item and adds it to the manager.
Definition PickupManager.cpp:25
Forward declaration of the Textures enum class.