File: properties.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 (187 lines) | stat: -rwxr-xr-x 8,102 bytes parent folder | download
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE doc
  SYSTEM '../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../clonk.xsl"?>
<doc>
  <title>Properties</title>
  <h>Properties</h>
  <part>
    <text>Every object has a number of properties that are handled by the engine. Typically, these are inherited from the object's Prototype, an <emlink href="definition/index.html#Objektdefinitionen">Object Definition</emlink>. A Property of an Object Definition is defined with the <code>local</code> keyword in the <emlink href="definition/script.html#Objektscripte">Definition's script</emlink>:</text>
    <code>local Name = "$Name$";
local ActMap = {
Stand = {
	Prototype = Action,
        Name = "Stand",
        Length = 1,
        NextAction = "Stand"
},
};
</code>
    <text>
      <table>
        <caption id="PropertiesTable">Object Properties</caption>
        <rowh>
          <col>Name</col>
          <col>Data type</col>
          <col>Description</col>
        </rowh>
        <row>
          <col><code>Prototype</code></col>
          <col>proplist</col>
          <col></col>
        </row>
        <row>
          <col><code>Name</code></col>
          <col>string</col>
          <col>Name of the object. This string should be <emlink href="lang.html">internationalized</emlink>.</col>
        </row>
        <row>
          <col><code>Collectible</code></col>
          <col>bool</col>
          <col>Whether the object can be picked up.</col>
        </row>
        <row>
          <col><code>Touchable</code></col>
          <col>int</col>
          <col>1 the object can be grabbed and pushed, 2 the object can only be grabbed.</col>
        </row>
        <row>
          <col><code>ActMap</code></col>
          <col>proplist</col>
          <col>See the <emlink href="definition/actmap.html">detailed description of the ActMap</emlink>.</col>
        </row>
        <row>
          <col><code>Visibility</code></col>
          <col>int/array</col>
          <col>Controls the visibility of the object. See the <emlink href="definition/visibility.html">detailed documentation of possible values</emlink>.</col>
        </row>
        <row>
          <col><code>LineColors</code></col>
          <col>array</col>
          <col>An array of two integers. The first denotes the color of the line and the second the color of the endpoints if the object is drawn as a line.</col>
        </row>
        <row>
          <col><code>LineAttach</code></col>
          <col>array</col>
          <col>An array of two integers. Denotes the position of where the endpoint of the line is located relative to the object center.</col>
        </row>	
        <row>
          <col><code>PictureTransformation</code></col>
          <col>array</col>
          <col>If the object is a mesh, the picture graphic of the object can be transformed with this property. See <funclink>Trans_Mul</funclink> for an example.</col>
        </row>
        <row>
          <col><code>MeshTransformation</code></col>
          <col>array</col>
          <col>If the object is a mesh, the ingame graphic of the object can be transformed with this property. See <funclink>Trans_Mul</funclink> for an example.</col>
        </row>
        <row>
          <col><code>MouseDrag</code></col>
          <col>bool</col>
          <col>Whether the object can be dragged with the mouse. What exactly happens when an object is dragged onto another is defined in script.</col>
        </row>
        <row>
          <col><code>MouseDragImage</code></col>
          <col>id / object</col>
          <col>The object or object id of which the picture should be displayed below the cursor while dragging.</col>
        </row>
        <row>
          <col><code>Tooltip</code></col>
          <col>string</col>
          <col>A tooltip that is displayed for objects of the category <emlink href="definition/category.html">C4D_MouseSelect</emlink>. This string should be <emlink href="lang.html">internationalized</emlink>.</col>
        </row>
        <row>
          <col><code>Action</code></col>
          <col>proplist</col>
          <col>The current action of the object as a proplist.</col>
        </row>
        <row>
          <col><code>BreatheWater</code></col>
          <col>bool</col>
          <col>Whether the object breathes in water rather than air.</col>
        </row>
        <row>
          <col><code>CorrosionResist</code></col>
          <col>bool</col>
          <col>Whether the alive object does not loose energy when in corrosive material.</col>
        </row>
        <row>
          <col><code>MaxEnergy</code></col>
          <col>int</col>
          <col>Maximum life energy in a precision of 100.</col>
        </row>
        <row>
          <col><code>MaxBreath</code></col>
          <col>int</col>
          <col>Maximum breath.</col>
        </row>
        <row>
          <col><code>ThrowSpeed</code></col>
          <col>int</col>
          <col>Throwing speed in a precision of 100.</col>
        </row>
        <row>
          <col><code>JumpSpeed</code></col>
          <col>int</col>
          <col>Jump speed in a precision of 100.</col>
        </row>
        <row id="Parallaxity">
          <col><code>Parallaxity</code></col>
          <col>[int, int]</col>
          <col>The Objects's major Z-Position. See <funclink>C4D_Parallax</funclink>.</col>
        </row>
        <row id="Plane">
          <col><code>Plane</code></col>
          <col>int</col>
          <col>The Object's minor Z-Position. Negative values are behind the landscape, positive values before it. Use 1-399 for stuff behind Clonks, 401-999 for stuff before Clonks, and 1000+ for GUI objects.</col>
        </row>
        <row id="SolidMaskPlane">
          <col><code>SolidMaskPlane</code></col>
          <col>int</col>
          <col>If the object moves and other objects are attached to its SolidMask, only objects in front of this plane are moved along with it. Defaults to Plane if zero.</col>
        </row>
		<row>
          <literal_col>Placement</literal_col>
          <col>Integer</col>
          <col>Placement: 0 land surface, 1 in liquid, 2 in mid-air, 3 underground, 4 land surface and underground.</col>
        </row>
		<row>
          <literal_col>ContainBlast</literal_col>
          <col>bool</col>
          <col>True or false. Determines whether explosions in the object's contents affect other objects outside.</col>
        </row>
		<row>
          <literal_col>BlastIncinerate</literal_col>
          <col>Integer</col>
          <col>Incineration by explosion: 0 none, otherwise the damage level that has to be reached until the object is incinerated. </col>
        </row>
		<row>
          <literal_col>BurnTo</literal_col>
          <col>C4ID</col>
          <col>Definition change upon incineration.</col>
        </row>
		<row>
          <literal_col>NoBurnDecay</literal_col>
          <col>Integer</col>
          <col>0 or 1. If 1, the object does not decompose if burning.</col>
        </row>
		<row>
          <literal_col>ContactIncinerate</literal_col>
          <col>Integer</col>
          <col>Probability of incineration by contact: 0 none, or 1 (high) to 5 (low).</col>
        </row>
		<row>
          <literal_col>EditCursorCommands</literal_col>
          <col>Array</col>
          <col>Array of functions made available in the context menu when right-clicking an object in the editor. Functions may be either strings (like "Explode(20)") or function pointers (like this.Hit). Function pointers are always called by name. Windows only.</col>
        </row>
		<row>
          <literal_col>BorderBound</literal_col>
          <col>Integer</col>
          <col>Bit mask indicating object boundaries: stop at map sides (C4D_Border_Sides), stop at map top (C4D_Border_Top), stop at map bottom (C4D_Border_Sides), stop at object layer boundaries (C4D_Border_Layer). For example BorderBound = C4D_Border_Top | C4D_Border_Bottom.</col>
        </row>
      </table>
    </text>
  </part>
  <author>Günther</author><date>2011</date>
</doc>