So I'm making a very simple game using sfml but ran into this issue. I made a game before using the same classes and design etc. But I'm getting an issue with Player* player;
and in another class Level level
.
What am I doing wrong this time. I can't remember what I did last time for this particular part (since i didn't run into this issue) and I don't have the files anymore.
Heres the header file.
#pragma once
//level.h
//includes
#include "Player.h"
#include "GameObject.h"
#include <vector>
#include <ctime>
#include <SFML\Window\Keyboard.hpp>
//usings
using std::vector;
using sf::Keyboard;
class Level
{
public:
Level();
~Level();
void Update(), Render(sf::RenderWindow& window);
private:
Player* player;
void HandleInput(), Randomise(), Reset(), UserInterface(), Collisions(), GenerateObjects(), MoveObjects();
vector<GameObject*> levelObjects;
sf::FloatRect rectCollectible[5], rectPlayer;
sf::Text timeText, scoreText;
sf::Font font;
sf::SoundBuffer collectibleBuffer;
sf::Sound collectibleSound;
sf::Texture spritesheet;
bool mute, paused;
int randomiser, spawnDelay, maxObjects;
};