How do I use classes? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: How do I use classes? (/thread-29840.html) Pages:
1
2
|
RE: How do I use classes? - Mudbill - 04-21-2015 Well, you've got the global.hps and inventory.hps files, but otherwise I don't actually think you can call external files. Using #include does not work. Perhaps this is worth a read. https://wiki.frictionalgames.com/doku.php?id=hpl2/resources/preprocess RE: How do I use classes? - FlawlessHappiness - 04-21-2015 (04-21-2015, 12:59 PM)Mudbill Wrote: Well, you've got the global.hps and inventory.hps files, but otherwise I don't actually think you can call external files. Using #include does not work. I read some of it but didn't quite understand it. Is it saying I can have a function in a different file and call it from one file? RE: How do I use classes? - Mudbill - 04-21-2015 From what I've picked up, yes, you'd be able to use more C++ like features like #include to call external files. I never looked much into this myself either though, but perhaps OP will. RE: How do I use classes? - FlawlessHappiness - 04-21-2015 (04-21-2015, 01:11 PM)Mudbill Wrote: From what I've picked up, yes, you'd be able to use more C++ like features like #include to call external files. I never looked much into this myself either though, but perhaps OP will. If I could call my whole battlesystem from only one file. That would be amazing. RE: How do I use classes? - Kullin1337 - 04-21-2015 (04-21-2015, 01:11 PM)Mudbill Wrote: From what I've picked up, yes, you'd be able to use more C++ like features like #include to call external files. I never looked much into this myself either though, but perhaps OP will.Thank you for the link! I'll look into it, and if get it to work I'll let you guys know! (: RE: How do I use classes? - Mudbill - 04-21-2015 That would be great! Good luck. |