Class structure, updated UML
Missing : actual code, decorators
This commit is contained in:
parent
2b9593bee8
commit
67435debe6
9 changed files with 113 additions and 10 deletions
19
src/Level.h
19
src/Level.h
|
@ -5,13 +5,26 @@
|
|||
#ifndef SRC_LEVEL_H
|
||||
#define SRC_LEVEL_H
|
||||
|
||||
#include <SFML/Graphics.hpp>
|
||||
#include <vector>
|
||||
|
||||
#include "Entity.h"
|
||||
#include "Game.h"
|
||||
|
||||
|
||||
class Level {
|
||||
Level();
|
||||
public:
|
||||
Level(const TextureStore& textureStore);
|
||||
|
||||
void render(sf::RenderWindow& renderWindow) const;
|
||||
void runStep() const;
|
||||
|
||||
private:
|
||||
int width;
|
||||
int height;
|
||||
const sf::Vector2i size;
|
||||
|
||||
std::vector<Entity> entities;
|
||||
|
||||
const TextureStore& textures;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue