File: GetMissionAccess.xml

package info (click to toggle)
openclonk 7.0-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 145,828 kB
  • ctags: 33,094
  • sloc: cpp: 163,891; ansic: 82,846; xml: 29,876; python: 1,203; php: 767; makefile: 138; sh: 77
file content (36 lines) | stat: -rwxr-xr-x 1,426 bytes parent folder | download | duplicates (7)
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
<?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>GetMissionAccess</title>
    <category>System</category>
    <version>5.1 OC</version>
    <syntax>
      <rtype>bool</rtype>
      <params>
        <param>
          <type>string</type>
          <name>mission_access</name>
          <desc>Mission access to be checked.</desc>
        </param>
      </params>
    </syntax>
    <desc>Determines whether the player already has the specified mission access password.</desc>
    <remark>In a network game, this function always returns <code>false</code>. Otherwise differing local values might cause synchronization problems.</remark>
    <examples>
      <example>
        <code><funclink>if</funclink> (!GetMissionAccess(&quot;DasWarHarteArbeit&quot;))
{
  <funclink>GainMissionAccess</funclink>(&quot;DasWarHarteArbeit&quot;);
  <funclink>Message</funclink>(&quot;Congratulations, you are here for the first time!&quot;);
}</code>
        <text>Displays a message if the mission access password "DasWarHarteArbeit" was not yet gained and then gives this mission access.</text>
      </example>
    </examples>
    <related><funclink>GainMissionAccess</funclink></related>
  </func>
  <author>Sven2</author><date>2001-11</date>
  <author>matthes</author><date>2005-02</date>
</funcs>