I'm working on a basic game that involves modifying objects. The concept is you find "mods" which you can combine with other "mods" to make a totally new one. I'm wondering if there's a way to set up the constructor for the mod class, so that there is one default constructor, and one constructor that combines 2 objects to create a 3rd. Would this work?
1 2 3 4 5 6 7
mod::mod(mod a, mod b);
......and so on
I'm unable to compile this right now, but I really want to continue working on the code before I can test it tonight. Thanks in advance.