Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I use classes?
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#11
RE: How do I use classes?

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
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#12
RE: How do I use classes?

(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?

Trying is the first step to success.
04-21-2015, 01:03 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#13
RE: How do I use classes?

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.

(This post was last modified: 04-21-2015, 01:12 PM by Mudbill.)
04-21-2015, 01:11 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#14
RE: How do I use classes?

(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.

Trying is the first step to success.
04-21-2015, 01:17 PM
Find
Kullin1337 Offline
Junior Member

Posts: 8
Threads: 2
Joined: Apr 2015
Reputation: 0
#15
RE: How do I use classes?

(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! (:
04-21-2015, 03:27 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#16
RE: How do I use classes?

That would be great! Good luck.

04-21-2015, 04:21 PM
Find




Users browsing this thread: 1 Guest(s)