Okay, I have two classes. One is a list of warriors and another is an arena (3D array of rooms [bool]).
In the list class, I have a method that "battles" and warriors can be killed in this method. When a warrior is killed, the room they're in (in the arena) should be made true (bool). But apparently you're not allowed access to other classes in C++. I get the error:
What can I do here to accomplish this? I cannot use inheritance yet on this assg.
In the list class, I have a method that "battles" and warriors can be killed in this method. When a warrior is killed, the room they're in (in the arena) should be made true (bool). But apparently you're not allowed access to other classes in C++. I get the error:
'ArenaClass::CloseRoom' : illegal call of non-static member functionWhat can I do here to accomplish this? I cannot use inheritance yet on this assg.