[Added] Start of player class, start of collision detection
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user