Maumau_game.h:
#ifndef MAUMAU_GAME_H_
#define MAUMAU_GAME_H_
#include <more_includes>
#include "Player.h"
enum game_status {
STATUS_NONE = 0,
STATUS_DRAW_2 = 1,
};
class Maumaugame_holder {
methods();
};
#endif /* MAUMAU_GAME_H_ */
Player.h:
#ifndef PLAYER_H_
#define PLAYER_H_
#include <vector>
#include "Maumau_game.h"
#include "Card.h"
class Player {
more_methods();
public:
void do_turn(game_status g_status, const Card upper_dropped_card,
Deck& talon); //Error: >>game_status<< not declared
};
#endif /* PLAYER_H_ */
I have no clue why the enum game_status is not declared. I have included the header properly and it is in the scope, isn't it? I cant declare the enum in the "Player.h" eiter. I would have declared it twice. Can you help me please? Do you have any suggestions?
(I am not allowed to use C++11)
Thanks in advance