openclonk/docs/sdk/script/fn/inherited.xml

38 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
<func>
<title>inherited</title>
<category>Script</category>
<version>5.1 OC</version>
<syntax>
<rtype>any</rtype>
<params>
<param>
<type>any</type>
<name>...</name>
<desc>Calling Parameters</desc>
</param>
</params>
</syntax>
<desc>Calls the overloaded function. A function overloads another function if it is declared with the same name in the same scope.</desc>
<examples>
<example>
<code>
#include Clonk
func Initialize()
{
CreateContents(Sword);
<funclink>return</funclink> inherited(...);
}</code>
<text>This could be the script of a new clonk type. It derives its basic functionality from the normal clonk (Clonk) and extends the Initialize function.</text>
</example>
</examples>
<related><funclink>_inherited</funclink></related>
</func>
<author>Sven2</author><date>2001-11</date>
</funcs>