1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
<?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>GetXDir</title>
<category>Objects</category>
<subcat>Movement</subcat>
<version>5.1 OC</version>
<syntax>
<rtype>int</rtype>
<params>
<param>
<type>int</type>
<name>precision</name>
<desc>Precision with which to retrieve the speed. Default value is 10.</desc>
</param>
</params>
</syntax>
<desc>Returns the horizontal speed of the calling object.</desc>
<remark>The function will return the speed in pixels per frame multiplied with precision. If no precision is specified, the ten-fold speed value will be returned.</remark>
<related>
<funclink>GetYDir</funclink>
<funclink>SetXDir</funclink>
<funclink>SetYDir</funclink>
<funclink>GetX</funclink>
<funclink>GetY</funclink>
<funclink>SetPosition</funclink>
</related>
</func>
<author>Cucaracha</author><date>2002-05</date>
</funcs>
|