1
General / Re: Code of sfml book?
« on: October 11, 2014, 04:23:52 pm »I declare the header file on aircraft.h to be able to get the variable of ResourceHolder.Please express yourself clearly, I have no idea what you mean. Make sure you're using the correct terms and illustrate the problem with code, if necessary.
What i mean by this is this
#include "Entity.h"
#include "ResourceHolder.h"
#include "ResourceHolder.h"
Its on the Aircraft class
class Aircraft : public Entity
{
public:
enum class Type{
Eagle,
Raptor
};
Aircraft(Type type, const this_undefined& textures);
virtual void drawCurrent(sf::RenderTarget &target, sf::RenderStates states) const;
private:
Type mType;
sf::Sprite mSprite;
};
{
public:
enum class Type{
Eagle,
Raptor
};
Aircraft(Type type, const this_undefined& textures);
virtual void drawCurrent(sf::RenderTarget &target, sf::RenderStates states) const;
private:
Type mType;
sf::Sprite mSprite;
};
which i was expecting that i could get the this_undefined variable without any errors.