Text Based Game with Clases Proyect

Hi guys !

I'm trying to do a zombies text based game, my problem comes because at the moment I have implemented nearly all myfunctions in my main, and I want to move most of them to their clases.

As an example we've got the function combat(),that I need the data of the vector I have created of zombies (std::vector<zombies> myzombies) and the object User (of the class Player).

How can I call from my player.cpp (as an example) the vector myzombies ??? In order I can move my function combat() to my player.cpp.

Last edited on
Topic archived. No new replies allowed.