[Added] Start of player class, start of collision detection

This commit is contained in:
Ninjaws
2024-12-10 19:26:48 +01:00
parent 97d93ab113
commit 774dc3806b
18 changed files with 433 additions and 50 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef MAP_SERVICE_H
#define MAP_SERVICE_H
#include "services/Service.h"
#include "entities/Map.h"
#include "entities/TextureWrapper.h"
/**
* Allows all rigidbodies to check against the current Map
*/
class MapService : public Service<MapService>
{
public:
void setMap(Map map)
{
this->map = Map();
}
Map& getMap() {
return this->map;
}
private:
Map map;
};
#endif