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


Thread Rating:
  • 14 Vote(s) - 2.93 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge Threadᆦ ᆦ ᆦ
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#57
RE: [CHALLENGE THREAD]

So classes are normally defined within .h (header) files, the file that defines the class methods is the .lib (library) file (maybe?), and the file that actually makes use of the class members is the main.cpp source file (or I guess any of the source files? o.o)?

Then when you write up main.cpp, you would #include the .h file, and then continue to use the functions defined in the classes in the .h file which you included.

maybe something like that?


Anyways, when you do start using classes in your script, you use them by created objects that use the classes as templates for their "settings" (or i guess arguments), and objects pretty much act like names for groups of variables (or I guess primitives, which includes functions and whatnot).

And normally this would be useful, because you can have the class and its members all be defined in a separate file from the file you're using to do things, but since you can't reference other files with hlp2 .hps files, you might as well just make global functions/variables that are smartly named. Unless of course you want to apply a templates of attributes to multiple different things, in which case the use of classes would at least be the most readable option.

04-15-2012, 12:24 AM
Find


Messages In This Thread
Challenge Threadᆦ ᆦ ᆦ - by nemesis567 - 04-10-2012, 02:49 PM
RE: [CHALLENGE THREAD] - by JetlinerX - 04-10-2012, 04:49 PM
RE: [CHALLENGE THREAD] - by Cranky Old Man - 04-10-2012, 05:12 PM
RE: [CHALLENGE THREAD] - by AnthonyTrix - 04-10-2012, 05:40 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-10-2012, 05:45 PM
RE: [CHALLENGE THREAD] - by Kreekakon - 04-10-2012, 06:13 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-10-2012, 06:24 PM
RE: [CHALLENGE THREAD] - by Kreekakon - 04-10-2012, 06:28 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-10-2012, 06:35 PM
RE: [CHALLENGE THREAD] - by Putmalk - 04-10-2012, 06:53 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-10-2012, 06:56 PM
RE: [CHALLENGE THREAD] - by palistov - 04-10-2012, 07:44 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-10-2012, 08:02 PM
RE: [CHALLENGE THREAD] - by palistov - 04-10-2012, 08:27 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-10-2012, 08:31 PM
RE: [CHALLENGE THREAD] - by palistov - 04-10-2012, 09:04 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-10-2012, 09:09 PM
RE: [CHALLENGE THREAD] - by palistov - 04-10-2012, 09:39 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-10-2012, 09:50 PM
RE: [CHALLENGE THREAD] - by Miss Rigi - 04-10-2012, 10:20 PM
RE: [CHALLENGE THREAD] - by palistov - 04-10-2012, 10:30 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-11-2012, 01:09 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-11-2012, 01:01 PM
RE: [CHALLENGE THREAD] - by ClayPigeon - 04-11-2012, 02:58 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-11-2012, 05:20 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-11-2012, 07:56 PM
RE: [CHALLENGE THREAD] - by ClayPigeon - 04-11-2012, 09:48 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-12-2012, 01:09 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-12-2012, 06:16 AM
RE: [CHALLENGE THREAD] - by ClayPigeon - 04-12-2012, 09:47 AM
RE: [CHALLENGE THREAD] - by DRedshot - 04-12-2012, 11:26 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-12-2012, 02:04 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-12-2012, 04:26 PM
RE: [CHALLENGE THREAD] - by Your Computer - 04-12-2012, 06:19 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-12-2012, 07:11 PM
RE: [CHALLENGE THREAD] - by Your Computer - 04-12-2012, 07:49 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-12-2012, 07:51 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-12-2012, 09:20 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-12-2012, 09:40 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-14-2012, 01:43 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-14-2012, 05:22 PM
RE: [CHALLENGE THREAD] - by Putmalk - 04-14-2012, 05:59 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-14-2012, 06:17 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-14-2012, 07:14 PM
RE: [CHALLENGE THREAD] - by Your Computer - 04-14-2012, 07:33 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-14-2012, 08:10 PM
RE: [CHALLENGE THREAD] - by Your Computer - 04-14-2012, 08:38 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-14-2012, 09:03 PM
RE: [CHALLENGE THREAD] - by Your Computer - 04-14-2012, 09:27 PM
RE: [CHALLENGE THREAD] - by DRedshot - 04-14-2012, 09:12 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-14-2012, 08:39 PM
RE: [CHALLENGE THREAD] - by Your Computer - 04-14-2012, 08:47 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-14-2012, 08:51 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-14-2012, 09:27 PM
RE: [CHALLENGE THREAD] - by Your Computer - 04-14-2012, 11:38 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-14-2012, 10:32 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-15-2012, 12:24 AM
RE: [CHALLENGE THREAD] - by Your Computer - 04-15-2012, 12:50 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-15-2012, 12:30 AM
RE: [CHALLENGE THREAD] - by Apjjm - 04-15-2012, 12:32 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-15-2012, 12:34 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-15-2012, 01:21 AM
RE: [CHALLENGE THREAD] - by Your Computer - 04-15-2012, 01:32 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-15-2012, 01:53 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-15-2012, 02:00 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-15-2012, 02:03 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-15-2012, 02:11 AM
RE: [CHALLENGE THREAD] - by Your Computer - 04-15-2012, 02:27 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-15-2012, 02:37 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-15-2012, 02:45 AM
RE: [CHALLENGE THREAD] - by Your Computer - 04-15-2012, 02:51 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-15-2012, 02:58 AM
RE: [CHALLENGE THREAD] - by Your Computer - 04-15-2012, 02:59 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-15-2012, 03:09 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-15-2012, 04:31 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-15-2012, 01:59 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-15-2012, 03:01 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-15-2012, 04:10 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-15-2012, 06:27 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-15-2012, 06:39 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-15-2012, 06:46 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-15-2012, 06:55 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-17-2012, 04:41 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-17-2012, 01:44 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-17-2012, 05:37 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-17-2012, 05:40 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-17-2012, 05:46 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-17-2012, 05:49 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-17-2012, 05:57 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-17-2012, 05:57 PM
RE: [CHALLENGE THREAD] - by DRedshot - 04-17-2012, 05:59 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-17-2012, 06:00 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-17-2012, 06:06 PM
RE: [CHALLENGE THREAD] - by DRedshot - 04-17-2012, 06:34 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-17-2012, 06:40 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-17-2012, 07:08 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-17-2012, 08:24 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-17-2012, 08:57 PM
RE: [CHALLENGE THREAD] - by Apjjm - 04-17-2012, 09:16 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-17-2012, 10:22 PM
RE: [CHALLENGE THREAD] - by DRedshot - 04-17-2012, 10:52 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-17-2012, 11:31 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-17-2012, 11:12 PM
RE: [CHALLENGE THREAD] - by Your Computer - 04-17-2012, 11:33 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-17-2012, 11:57 PM
RE: [CHALLENGE THREAD] - by Your Computer - 04-18-2012, 01:05 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-18-2012, 12:03 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-18-2012, 01:35 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-18-2012, 12:10 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-18-2012, 04:01 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-18-2012, 04:03 PM
RE: [CHALLENGE THREAD] - by Your Computer - 04-18-2012, 04:21 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-18-2012, 04:21 PM
RE: [CHALLENGE THREAD] - by Your Computer - 04-18-2012, 05:08 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-18-2012, 05:40 PM
RE: [CHALLENGE THREAD] - by Apjjm - 04-18-2012, 08:49 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-18-2012, 08:57 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-18-2012, 09:06 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-19-2012, 06:05 AM
RE: [CHALLENGE THREAD] - by Your Computer - 04-19-2012, 06:21 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-19-2012, 07:51 AM
RE: [CHALLENGE THREAD] - by Your Computer - 04-19-2012, 08:36 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-19-2012, 08:43 AM
RE: [CHALLENGE THREAD] - by Your Computer - 04-19-2012, 09:09 AM
RE: [CHALLENGE THREAD] - by Apjjm - 04-19-2012, 01:56 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-19-2012, 04:17 PM
RE: [CHALLENGE THREAD] - by Apjjm - 04-19-2012, 04:19 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-19-2012, 05:09 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-19-2012, 02:09 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-20-2012, 07:03 PM
RE: [CHALLENGE THREAD] - by Apjjm - 04-20-2012, 07:24 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-20-2012, 09:00 PM
RE: [CHALLENGE THREAD] - by Apjjm - 04-20-2012, 11:50 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-21-2012, 01:34 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-24-2012, 02:54 PM
RE: [CHALLENGE THREAD] - by Apjjm - 04-24-2012, 09:33 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-24-2012, 09:51 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-24-2012, 09:54 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-25-2012, 12:20 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-26-2012, 12:02 AM
RE: [CHALLENGE THREAD] - by Apjjm - 04-26-2012, 02:00 AM
RE: [CHALLENGE THREAD] - by Rapture - 04-26-2012, 05:17 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-26-2012, 06:44 AM
RE: [CHALLENGE THREAD] - by Apjjm - 04-26-2012, 01:57 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-26-2012, 01:59 PM
RE: [CHALLENGE THREAD] - by Apjjm - 04-26-2012, 07:29 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-26-2012, 09:26 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-26-2012, 10:34 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-26-2012, 11:36 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-26-2012, 11:43 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-27-2012, 12:02 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-27-2012, 12:21 AM
RE: [CHALLENGE THREAD] - by Apjjm - 04-29-2012, 09:29 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-27-2012, 01:29 AM
RE: [CHALLENGE THREAD] - by Your Computer - 04-27-2012, 02:17 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-27-2012, 02:31 AM
RE: [CHALLENGE THREAD] - by Your Computer - 04-27-2012, 03:49 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-27-2012, 04:06 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-27-2012, 01:56 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-27-2012, 04:24 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-29-2012, 09:55 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-30-2012, 05:22 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-30-2012, 12:54 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-30-2012, 01:38 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-30-2012, 02:02 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 04-30-2012, 03:04 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 04-30-2012, 05:26 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 05-01-2012, 12:48 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 05-01-2012, 01:12 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 05-01-2012, 05:20 AM
RE: [CHALLENGE THREAD] - by Your Computer - 05-01-2012, 11:22 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 05-01-2012, 12:37 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 05-01-2012, 01:35 PM
RE: [CHALLENGE THREAD] - by Your Computer - 05-01-2012, 02:07 PM
RE: [CHALLENGE THREAD] - by Apjjm - 05-01-2012, 03:47 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 05-01-2012, 04:04 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 05-01-2012, 06:01 PM
RE: [CHALLENGE THREAD] - by Apjjm - 05-01-2012, 06:39 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 05-02-2012, 05:45 AM
RE: [CHALLENGE THREAD] - by Theforgot3n1 - 05-02-2012, 09:19 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 05-02-2012, 10:33 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 05-02-2012, 11:24 PM
RE: [CHALLENGE THREAD] - by nemesis567 - 05-05-2012, 04:02 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 05-06-2012, 04:48 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 05-06-2012, 10:03 PM
RE: [CHALLENGE THREAD] - by Apjjm - 05-07-2012, 02:37 AM
RE: [CHALLENGE THREAD] - by Homicide13 - 05-07-2012, 02:58 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 05-07-2012, 11:00 PM
RE: [CHALLENGE THREAD] - by Homicide13 - 05-08-2012, 01:22 AM
RE: [CHALLENGE THREAD] - by nemesis567 - 05-08-2012, 01:38 AM



Users browsing this thread: 8 Guest(s)