Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Quad), 454 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Overloading engine functions... #453527
07/30/15 21:48
07/30/15 21:48
Joined: Aug 2005
Posts: 199
houston
S
seneca Offline OP
Member
seneca  Offline OP
Member
S

Joined: Aug 2005
Posts: 199
houston
I'm not sure, but can you overload engine functions? If so, how?

I used to know how to do it with the old system back in the day, but it's been too long. I think....

Google and this forum doesn't return the results I need when I search, "overload" "engine functions" laugh.

I am trying to overload pan_setbutton command.

thanks for the help.


a8 commercial
Re: Overloading engine functions... [Re: seneca] #453529
07/30/15 21:56
07/30/15 21:56
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
just create a new function with the same name but different parameters. Depending on the parameters you give the function when calling it, the engine decides which of them it has to use.

This also means that you cannot overload a function and use the same number and types of the parameters.


POTATO-MAN saves the day! - Random
Re: Overloading engine functions... [Re: Kartoffel] #453542
07/31/15 15:57
07/31/15 15:57
Joined: Aug 2005
Posts: 199
houston
S
seneca Offline OP
Member
seneca  Offline OP
Member
S

Joined: Aug 2005
Posts: 199
houston
Thanks, I remember it being easy, but I didn't think it was that easy...


a8 commercial

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1