Haha guessing Slicing = hacky memory but yea ill look into it
Also if you can point me in the right direction with this error thats now occuring:1> collision.cpp //and a few other cpp files
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\vector(869): error C2259: 'NPC' : cannot instantiate abstract class
1> due to following members:
1> 'void NPC::move(float,sf::Sprite &,sf::RenderWindow &)' : is abstract
1> c:\users\public\videos\geowars v2\geometry wars\dev\include\hayleigh\npcs.h(18) : see declaration of 'NPC::move'
1> c:\users\public\videos\geowars v2\geometry wars\dev\include\hayleigh\npcmanager.h(18) : see reference to class template instantiation 'std::vector<_Ty>' being compiled
1> with
1> [
1> _Ty=NPC
1> ]
I'd be most thankful!
aka what does abstract mean in this situation so I can fix it -- for reference each base class like in the code above takes the same amount of arguments as the virtual so im stumped..Edit: Perhaps it has to do with me creating the vector like this(as it seems to refer to this in the error) std::vector<NPC> npcVec; //Vector of NPC's
for(int i = 0; i < maxNPC; i++)
{
npcVec.push_back(blueNPC());
npcVec.push_back(purpleNPC());
npcVec.push_back(greenNPC());
npcVec.push_back(snakeNPC());
}