Simple 2D RPG made in C++ and SFML
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef MAINGAME_H
|
|
|
|
#define MAINGAME_H
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#include "camera.h"
|
|
|
|
#include "entitymanager.h"
|
|
|
|
#include "gamestate.h"
|
|
|
|
#include "inputmanager.h"
|
|
|
|
#include "mapload.h"
|
|
|
|
#include "player.h"
|
|
|
|
|
|
|
|
class MainGame : public GameState
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void Initialize(sf::RenderWindow* window);
|
|
|
|
void Update(sf::RenderWindow* window);
|
|
|
|
void Render(sf::RenderWindow* window);
|
|
|
|
void Destroy(sf::RenderWindow* window);
|
|
|
|
|
|
|
|
private:
|
|
|
|
EntityManager* entityManager;
|
|
|
|
Map* map;
|
|
|
|
Camera* camera;
|
|
|
|
Player* player;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINGAME_H
|