does not name a type

i have seen this problem in multiple places but never a solution as all solutions seem to infer a compiler error.

I have a header that includes all other files needed as far as i can see:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "../Adventure2/Creature/Creature.h"
#include "../Adventure2/Armour.h"
#include "../Adventure2/Weapon.h"

//Project includes

class Player : public Creature {
public:
    // Constructors inherited from Creature class
    Player();
    Player(Weapon, Armour);
    Weapon getWeapon();
    Armour getArmour();
    void printStats();
private:
    Weapon currentW;
    Armour currentA;
};


when compiling I get
`Weapon' does not name a type


armour is set exactly the same as weapon is a derived class and i see absolutely no difference between the two and both are included the way they should be and paths are all set correctly.

is there something I'm missing been looking at this a while now.

any help is appreciated

Does Weapon or Armor include Player.h?
none of them include player.h both only include the super class they inherit from and nothing else
Topic archived. No new replies allowed.