you have the function battlePhase set up to take 2 arguments but arent passing it anything hence the error. You should either pass battlePhase a refrence to a Player1 and a Boar1 or you should be able to just declare them in battlePhase and remove them as args from the looks of things.
i it to "battlePhase(Player1 &player, Boar1 &boar);" but now everything inside the () is appearently an error, what am i doing wrong.. and try to dumb it dwon for me, im new to this so i dont know C++ talk.
So presumably this is what your main function now looks like:
1 2 3 4 5
int main()
{
battlePhase(Player1 &player, Boar1 &boar);
return 0;
}
The battlephase line there says "I declare the existence of a function named battlePhase, and it takes in two objects, a reference to a Player1 object and a reference to a Boar1 object". You're not calling the function. You're declaring that it exists, except you're not, because there's no return type. It's a mess.
Did you mean to call the function?
1 2 3 4 5 6 7
int main()
{
Player1 player; // CREATE an object of type Player1, named player
Boar1 boar; // CREATE an object of type Boar1, named boar
battlePhase(player, boar); //CALL function, passing in the objects I just created
return 0;
}