C++ Project 2016-2017: Arkanoid
arkanoid.h
Go to the documentation of this file.
1 
3 #ifndef ARKANOID_H
4 #define ARKANOID_H
5 
6 #include "logic/world.h"
7 #include "factory/sfml_factory.h"
9 
10 #include <SFML/Graphics.hpp>
11 #include <iostream>
12 #include <memory>
13 #include <string>
14 
15 using namespace std;
16 
18 class Arkanoid {
19 private:
20  arkanoid::World world;
21  arkanoidSFML::Transformation* transformation;
22  SFMLFactory factory;
23  int currentLevel;
24 
25  sf::RenderWindow windowSFML;
26  sf::Sprite background;
27  sf::Texture texture;
28 
32  void initialise();
33 
40  void loadLevel(int level);
41 
45  void processInput();
46 
50  void render();
51 
52 public:
53 
59  Arkanoid();
60 
66  void run(int level = 1);
67 };
68 
69 #endif /* ARKANOID_H */
Singleton: This class provides a method to convert screen pixels to their corresponding coordinates i...
The World of the Arkanoid game that contains all Entity objects.
Definition: world.h:23
Factory: Creates EntitySFML.
Definition: sfml_factory.h:20
The actual game that can be run. Interacts with the arkanoid and the arkanoidSFML.
Definition: arkanoid.h:18