im not a professional but i dont think that it is related on my experience.
i checked the includes ...everything is included.
yes but the problem is that it might be too much code but ill try.
this is the header file of class 'play' where i declared the movingBall object
//includes
#ifndef PLAY_HPP
#define PLAY_HPP
#include <SFML\Graphics.hpp>
#include "states.hpp"
#include "game.hpp"
#include "movingBall.hpp"
#include "wallCollision.hpp"
//there are other declarations but i dont show them to keep it clear to read
class play :public states
{
public:
movingBall moBa; //the case when the compiler says that a semicolon is missing
//i forgot to say that the compiler says that there is a missing type specifier
//but nothing is marked red
play();
void draw(game &Game);
void Update(game &Game);
void handleEvents(game &Game);
protected:
header of the movingBall class:
//includes
#ifndef MOVINGBALL_HPP
#define MOVINGBALL_HPP
#include "play.hpp"
#include <time.h>
class movingBall
{
public:
movingBall();
//maybe it is connected with that much of arguments?! i dont think so..
void ballIsMoving(sf::CircleShape &ball, sf::RectangleShape &barOne,
sf::RectangleShape &barTwo, sf::RectangleShape &wallOne,
sf::RectangleShape &wallTwo,int &movementOne,int &movementTwo);
protected:
};
#endif
i forgot to say that the compiler says that there is a missing type specifier
but nothing is marked red!!