I already had the header guards in when he told me to add them ;-)
anyway, heres the AISnake constrructor
Code:
AISnake::AISnake(int x = 0, int y = 0)
{
ImageFile("../Assets/node2.tga").load(nodeimage2);
AIsegments.push_front(Position(20,700));
AIsegments.push_front(Position(40,700));
AIsegments.push_front(Position(60,700));
direction_ = 'w';
}
and the compiler error reads:
No matching function to call to AISnake::AISnake()
Candidates are : AISnake::AISnake(int, int)
AISnake::AISnake(const AISnake&)
When I get this error it highlights the GamEvent constructor, which makes no mention of AISnake. I also checked and could find calling AISnake without the two ints.
heres the GameEvent constructor just so you can see
Code:
GameEvent::GameEvent() : t_(0,300,this)
{
}