1<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2<!DOCTYPE funcs
3  SYSTEM '../../../clonk.dtd'>
4<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
5<funcs>
6  <func>
7    <title>GetXDir</title>
8    <category>Objects</category>
9    <subcat>Movement</subcat>
10    <version>5.1 OC</version>
11    <syntax>
12      <rtype>int</rtype>
13      <params>
14        <param>
15          <type>int</type>
16          <name>precision</name>
17          <desc>Precision with which to retrieve the speed. Default value is 10.</desc>
18        </param>
19      </params>
20    </syntax>
21    <desc>Returns the horizontal speed of the calling object.</desc>
22    <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>
23    <related>
24      <funclink>GetYDir</funclink>
25      <funclink>SetXDir</funclink>
26      <funclink>SetYDir</funclink>
27      <funclink>GetX</funclink>
28      <funclink>GetY</funclink>
29      <funclink>SetPosition</funclink>
30    </related>
31  </func>
32  <author>Cucaracha</author><date>2002-05</date>
33</funcs>
34