-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Player::AddToInventory #133
Comments
I'd like to work on this. |
Please assign this to me |
I would like to work on this. |
please assign this to me. |
1 similar comment
please assign this to me. |
please assign this to me |
hi tagniam i can't find build inside Turn folder neither in the repo nor after cloning...please help how to run the game so that i can understand the code in better way and make contributions |
@pallavi-bits To run the game, after cloning the repo, follow the build instructions given in the |
I did but got this error-"CMake Error: The source directory "/home/pallavi/Turn/build" does not exist. |
@pallavi-bits did you get that message after running |
Thanks @tagniam yes the issue was of outdated cmake..now its working good thanks |
Current,
Player::AddToInventory(vector<int> drops)
adds items to the player's inventory by checking drops[0] for the number of arrows to add, drops[1] for bombs, drops[2] for potions, etc.We'd like to refactor this such that the method takes a vector of std::pair<ITEMTYPE, int>, where the first element in the pair is the type of the item to add and the second element in the pair is the amount to add.
The text was updated successfully, but these errors were encountered: