Hey guys. So after a brief hiatus I've started working on my shoot em up once again. Once I started digging around in the code I realized I was going to have to restructure things quite a bit. What I'm working on right now is a ship manager class that will take care of drawing the player and enemy ships and what not. So anyways it works fine as far as the enemies are concerned and does what it supposed to do there, but, I can't get it to instantiate a player.
I'm sure I'm missing something totally trivial and easy here but I've been up extremely late the past few nights trying to get this all working and I can't for the life of me find the problem. heres what I'm trying to do:
Code: Select all
class ShipManager
{
....
public:
Character player;
};
When I add the player object to the header code::blocks points at the constructor for my ShipManager class and spits out the following errors.
error: no matching function for call to 'Character::Character()'
note: candidates are: Character::Character(int, int, int, int, int, float, float, float)
note: Character::Character(const Character&)
I'm a little cracked out on my own code right now and I'm sure this is something simple but I just can't find it. Any clues? I can post any other code that may be applicable after I get off work.
"Do I really have to spell this out? What if a bunch of punk kids go into the woods with a bullet proof vest and strap it on a grizzly bear? Then what have you got? Invincible bears. Is that what you want? Invincible bears running around; raping your churches and burning your women?"