Frictional Games Forum (read-only)

Full Version: How do I use classes?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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.ph...preprocess
(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.

Perhaps this is worth a read.
https://wiki.frictionalgames.com/doku.ph...preprocess

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?
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.
(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.
(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! (:
That would be great! Good luck.
Pages: 1 2