File: DrawParticleLine.xml

package info (click to toggle)
openclonk 8.1-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 169,520 kB
  • sloc: cpp: 180,479; ansic: 108,988; xml: 31,371; python: 1,223; php: 767; makefile: 145; sh: 101; javascript: 34
file content (81 lines) | stat: -rw-r--r-- 3,119 bytes parent folder | download | duplicates (5)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?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>DrawParticleLine</title>
    <category>Particles</category>
    <version>5.1 OC</version>
    <syntax>
      <rtype>int</rtype>
      <params>
        <param>
          <type>string</type>
          <name>particle</name>
          <desc>Type of particle to be created.</desc>
        </param>
        <param>
          <type>int</type>
          <name>x0</name>
          <desc>X coordinate of the starting point. Offset in local calls.</desc>
        </param>
        <param>
          <type>int</type>
          <name>y0</name>
          <desc>Y coordinate of the starting point. Offset in local calls.</desc>
        </param>
        <param>
          <type>int</type>
          <name>x1</name>
          <desc>X coordinate of the end point. Offset in local calls.</desc>
        </param>
        <param>
          <type>int</type>
          <name>y1</name>
          <desc>Y coordinate of the end point. Offset in local calls.</desc>
        </param>
        <param>
          <type>int</type>
          <name>prtdist</name>
          <desc>Distance between particles. This may not be applied exactly as particles are always spread evenly over the total distance.</desc>
        </param>
        <param>
          <type>any</type>
          <name>xdir</name>
          <desc>Initial horizontal velocity in 1/10th pixels per frame or as a value provider.</desc>
        </param>
        <param>
          <type>any</type>
          <name>ydir</name>
          <desc>Initial vertical velocity in 1/10th pixels per frame or as a value provider.</desc>
        </param>
        <param>
          <type>any</type>
          <name>lifetime</name>
          <desc>Duration of particle in frames or as a value provider.</desc>
        </param>
        <param>
          <type>proplist</type>
          <name>prtdef</name>
          <desc>Particle definition.</desc>
        </param>
      </params>
    </syntax>
    <desc>Creates a line of particles between two points. Returns the number of particles created.</desc>
    <remark>For more information about the value provider and particle definition parameters, see <funclink>CreateParticle</funclink>.</remark>
    <examples>
      <example>
        <code>DrawParticleLine(&quot;MagicSpark&quot;, 0, 0, <funclink>GetCursor</funclink>()-><funclink>GetX</funclink>()-<funclink>GetX</funclink>(), <funclink>GetCursor</funclink>()-><funclink>GetY</funclink>()-<funclink>GetY</funclink>(), 20, 0, 0, 12, {Prototype = Particles_Flash(), Size = 20, R = 50, G = 50, B = 255});</code>
        <text>Creates a line from the calling object to the selected clonk of the first player using a blue flash particle.</text>
      </example>
    </examples>
    <related>
      <funclink>CreateParticle</funclink>
      <funclink>CastParticles</funclink>
      <funclink>RGB</funclink>
      <funclink>RGBa</funclink>
    </related>
  </func>
  <author>Sven2</author><date>2002-05</date>
</funcs>