File: RemoveEffect.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 (52 lines) | stat: -rw-r--r-- 1,871 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
<?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>RemoveEffect</title>
    <category>Effects</category>
    <version>5.1 OC</version>
    <syntax>
      <rtype>bool</rtype>
      <params>
        <param>
          <type>string</type>
          <name>name</name>
          <desc>Name of the effect without preceding 'Fx'. You can use '*' and '?' wildcards.</desc>
          <optional />
        </param>
        <param>
          <type>object</type>
          <name>target</name>
          <desc>Target object from which to remove an effect. If <code>nil</code>, the global effects list will be searched.</desc>
          <optional />
        </param>
        <param>
          <type>proplist</type>
          <name>effect</name>
          <desc>The effect. Instead to search by name, the effect can be directly removed if this parameter is given.</desc>
          <optional />
        </param>
        <param>
          <type>bool</type>
          <name>no_calls</name>
          <optional />
          <desc>If not <code>false</code>, no Stop calls will be made.</desc>
        </param>
      </params>
    </syntax>
    <desc>Deletes an effect.</desc>
    <remark>See <funclink>GetEffect</funclink> for an example. Warning: if an effect is meant to delete itself using this function, only use effect, not name!</remark>
    <related>
      <emlink href="script/Effects.html">Effects Documentation</emlink>
      <funclink>CreateEffect</funclink>
      <funclink>CheckEffect</funclink>
      <funclink>GetEffectCount</funclink>
      <funclink>EffectCall</funclink>
      <funclink>GetEffect</funclink>
    </related>
  </func>
  <author>Sven2</author><date>2004-03</date>
  <author>Newton</author><date>2011-07</date>
</funcs>