0

I created a class "Player". In this class I declare an object "CollisionSystem", whose constructor looks like this:

CollisionSystem(Player *player, std::list<Rock*> *lRock, std::list<Water*> *lWater);

I made a pointer CollisionSystem *pSystem and in player's constructor I said

pSystem = new CollisionSystem(pSprite, pRock->getRocks(), pWater->getWater())

It now says "syntax error: identifier "Player". in the line, where I declare the constructor of CollisionSystem. Why does it say that (it says it 4 times, always for the same code line)

D4RKS0UL23
  • 45
  • 1
  • 5

0 Answers0