I am following the book and i started implementing the aircraft constructor, when i really got confused with the book:
//--Aircraft
Aircraft::Aircraft(Type type, const TextureHolder& textures) : mType(type), mSprite(textures.get(toTextureID(type)))
{
sf::FloatRect bounds = mSprite.getLocalBounds();
mSprite.setOrigin(bounds.width / 2.0f, bounds.height / quote);
}
//--ResourceIden
template <typename Resource, typename Identifier>
class ResourceHolder;
typedef ResourceHolder<sf::Texture, Textures::ID> TextureHolder;
}
How does TextureHolder have access to a get function member, since ResourceHolder is not defined?