Creating the Trade Window?
#3
Thank you!

I have added the functionality to the cWindow, however I'm not quite sure if I even need another class called cTrade, as it basically just does the same functionality like cItems (except that it has a strange structure at the moment).
So I was wondering whether I should just completely remove the cTrade class and replace it with cItems (which would have a size of 3 items, the first one is the first left item, the second the right, the last is the second left item).
You can take a small peek in my github repo. (I know it's very dirty, but I'm also quite new to C++, I hope that doesn't scare you too much.) I also think that the sending and composing of the string which is going to send the items later should be done inside Protocol/ClientHandle.
https://github.com/Fighter19/cuberite/co...07cd28a45e

I hope that I'm not wasting your time, either way you'd have a small (but dirty) example of how trading could work ^^.
Reply
Thanks given by:


Messages In This Thread
Creating the Trade Window? - by Fighter19 - 03-02-2016, 10:28 AM
RE: Creating the Trade Window? - by xoft - 03-02-2016, 06:45 PM
RE: Creating the Trade Window? - by Fighter19 - 03-14-2016, 08:42 AM
RE: Creating the Trade Window? - by xoft - 03-14-2016, 10:55 PM
RE: Creating the Trade Window? - by Fighter19 - 03-08-2017, 05:58 AM



Users browsing this thread: 1 Guest(s)