Difference between revisions of "Shape:getMaskBits"

(Added see also links, broken(?) example)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{oldin|[[0.6.1]]|061|type=function}}
 
Returns a 16-bit integer representing the masked categories.  
 
Returns a 16-bit integer representing the masked categories.  
 
A set bit means that a collision occurs with members of that category.
 
A set bit means that a collision occurs with members of that category.
 
N.B. This function is no longer available in LÖVE version 0.6.1.
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 12: Line 11:
 
=== Returns ===
 
=== Returns ===
 
{{param|number|mask|An integer value representing the mask.}}
 
{{param|number|mask|An integer value representing the mask.}}
== Examples ==
 
=== Prints 6 ===
 
<source lang="lua">
 
shape:setMask(1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 13, 14, 15, 16)
 
print(shape:getMaskBits()) -- errors, seems to be nil?
 
</source>
 
 
== See Also ==
 
== See Also ==
 
* [[parent::Shape]]
 
* [[parent::Shape]]
Line 23: Line 16:
 
* [[Shape:setMask]]
 
* [[Shape:setMask]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Returns a 16-bit integer representing the masked categories.  
+
{{#set:Description=Returns a 16-bit integer representing the masked categories.}}
}}
+
== Other Languages ==
 +
{{i18n|Shape:getMaskBits}}

Latest revision as of 10:53, 25 March 2011

Removed in LÖVE 0.6.1
This function is not supported in that and later versions.

Returns a 16-bit integer representing the masked categories. A set bit means that a collision occurs with members of that category.

Function

Synopsis

mask = Shape:getMaskBits( )

Arguments

None.

Returns

number mask
An integer value representing the mask.

See Also

Other Languages