SpriteLibrary/SpriteLibrary/Doc/Help/html/b78d4878-d301-191f-9c53-4f41d3e937e6.htm
2017-09-21 13:00:33 -05:00

18 lines
11 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html><head><meta http-equiv="X-UA-Compatible" content="IE=edge" /><link rel="shortcut icon" href="../icons/favicon.ico" /><link rel="stylesheet" type="text/css" href="../styles/branding.css" /><link rel="stylesheet" type="text/css" href="../styles/branding-en-US.css" /><script type="text/javascript" src="../scripts/branding.js"> </script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>SpriteCollisionMethod Enumeration</title><meta name="Language" content="en-us" /><meta name="System.Keywords" content="SpriteCollisionMethod enumeration" /><meta name="System.Keywords" content="SpriteLibrary.SpriteCollisionMethod enumeration" /><meta name="System.Keywords" content="rectangle enumeration member" /><meta name="System.Keywords" content="circle enumeration member" /><meta name="System.Keywords" content="transparency enumeration member" /><meta name="Microsoft.Help.F1" content="SpriteLibrary.SpriteCollisionMethod" /><meta name="Microsoft.Help.F1" content="SpriteLibrary.SpriteCollisionMethod.rectangle" /><meta name="Microsoft.Help.F1" content="SpriteLibrary.SpriteCollisionMethod.circle" /><meta name="Microsoft.Help.F1" content="SpriteLibrary.SpriteCollisionMethod.transparency" /><meta name="Microsoft.Help.Id" content="T:SpriteLibrary.SpriteCollisionMethod" /><meta name="Description" content="The various types of collisions a sprite can have. Currently only rectangle works. The other types were added when I thought the different types of collision types were needed." /><meta name="Microsoft.Help.ContentType" content="Reference" /><meta name="BrandingAware" content="true" /><meta name="container" content="SpriteLibrary" /><meta name="file" content="b78d4878-d301-191f-9c53-4f41d3e937e6" /><meta name="guid" content="b78d4878-d301-191f-9c53-4f41d3e937e6" /><link rel="stylesheet" type="text/css" href="../styles/branding-Website.css" /><script type="text/javascript" src="../scripts/jquery-1.11.0.min.js"></script><script type="text/javascript" src="../scripts/branding-Website.js"></script><script type="text/javascript" src="../scripts/clipboard.min.js"></script></head><body onload="OnLoad('cs')"><input type="hidden" id="userDataCache" class="userDataStyle" /><div class="pageHeader" id="PageHeader">SpriteLibrary<form id="SearchForm" method="get" action="#" onsubmit="javascript:TransferToSearchPage(); return false;"><input id="SearchTextBox" type="text" maxlength="200" /><button id="SearchButton" type="submit"></button></form></div><div class="pageBody"><div class="leftNav" id="leftNav"><div id="tocNav"><div class="toclevel0" data-toclevel="0"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="6b7227c0-7a6a-6342-3b08-917c7de429cc.htm" title="SpriteLibrary" tocid="roottoc">SpriteLibrary</a></div><div class="toclevel1" data-toclevel="1" data-childrenloaded="true"><a class="tocExpanded" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="6b7227c0-7a6a-6342-3b08-917c7de429cc.htm" title="SpriteLibrary" tocid="6b7227c0-7a6a-6342-3b08-917c7de429cc">SpriteLibrary</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="5aa6ad83-7060-97ba-0874-99e52486cd6c.htm" title="AnimationInfo Class" tocid="5aa6ad83-7060-97ba-0874-99e52486cd6c">AnimationInfo Class</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="b0575fa3-d1f2-f3d5-aeff-bdb7b04e46b6.htm" title="AnimationType Enumeration" tocid="b0575fa3-d1f2-f3d5-aeff-bdb7b04e46b6">AnimationType Enumeration</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="66013d9b-4126-7d65-05bb-94eb9d134be6.htm" title="Sprite Class" tocid="66013d9b-4126-7d65-05bb-94eb9d134be6">Sprite Class</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="1bab1e49-641a-5648-d034-4298d8158019.htm" title="Sprite.SpriteEventHandler Delegate" tocid="1bab1e49-641a-5648-d034-4298d8158019">Sprite.SpriteEventHandler Delegate</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="eae9601e-6da0-b304-9836-5e4b1e743f94.htm" title="SpriteAdjustmentRatio Structure" tocid="eae9601e-6da0-b304-9836-5e4b1e743f94">SpriteAdjustmentRatio Structure</a></div><div class="toclevel2 current" data-toclevel="2"><a data-tochassubtree="false" href="b78d4878-d301-191f-9c53-4f41d3e937e6.htm" title="SpriteCollisionMethod Enumeration" tocid="b78d4878-d301-191f-9c53-4f41d3e937e6">SpriteCollisionMethod Enumeration</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="07a473e4-4716-e5b9-c7d2-c4748265fc58.htm" title="SpriteController Class" tocid="07a473e4-4716-e5b9-c7d2-c4748265fc58">SpriteController Class</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="b2b20aab-3fc0-1b0f-8fda-213dbc180690.htm" title="SpriteDatabase Class" tocid="b2b20aab-3fc0-1b0f-8fda-213dbc180690">SpriteDatabase Class</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="f42e1d9a-273c-861f-b7db-6244c9266d2c.htm" title="SpriteEventArgs Class" tocid="f42e1d9a-273c-861f-b7db-6244c9266d2c">SpriteEventArgs Class</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="ea3329cc-ea39-b02b-025e-fc9ac7e40cd8.htm" title="SpriteInfo Class" tocid="ea3329cc-ea39-b02b-025e-fc9ac7e40cd8">SpriteInfo Class</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="38678a79-da77-9ef7-e3e1-78ff96f5bd7b.htm" title="SpriteKeyEventHandler Delegate" tocid="38678a79-da77-9ef7-e3e1-78ff96f5bd7b">SpriteKeyEventHandler Delegate</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="efc2cb08-5c2b-c758-477e-d5739183a1ba.htm" title="SpritePauseType Enumeration" tocid="efc2cb08-5c2b-c758-477e-d5739183a1ba">SpritePauseType Enumeration</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="4e310248-8e1a-76aa-edbc-a83f4ba9b425.htm" title="SpritePayload Class" tocid="4e310248-8e1a-76aa-edbc-a83f4ba9b425">SpritePayload Class</a></div></div><div id="tocResizableEW" onmousedown="OnMouseDown(event);"></div><div id="TocResize" class="tocResize"><img id="ResizeImageIncrease" src="../icons/TocOpen.gif" onclick="OnIncreaseToc()" alt="Click or drag to resize" title="Click or drag to resize" /><img id="ResizeImageReset" src="../icons/TocClose.gif" style="display:none" onclick="OnResetToc()" alt="Click or drag to resize" title="Click or drag to resize" /></div></div><div class="topicContent" id="TopicContent"><table class="titleTable"><tr><td class="titleColumn"><h1>SpriteCollisionMethod Enumeration</h1></td></tr></table><span class="introStyle"></span> <div class="summary">
The various types of collisions a sprite can have. Currently only rectangle works. The other types were added when I
thought the different types of collision types were needed. Someday we may add these if we find they are useful, or if
someone else decides they want to help program the SpriteLibrary. These values are primarily used in Sprite Events
</div><p> </p>
<strong>Namespace:</strong>
 <a href="6b7227c0-7a6a-6342-3b08-917c7de429cc.htm">SpriteLibrary</a><br />
<strong>Assembly:</strong>
 SpriteLibrary (in SpriteLibrary.dll) Version: 1.0.0.5 (1.0.0.5)<div class="collapsibleAreaRegion"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('ID1RB')" onkeypress="SectionExpandCollapse_CheckKey('ID1RB', event)" tabindex="0"><img id="ID1RBToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />Syntax</span></div><div id="ID1RBSection" class="collapsibleSection"><div class="codeSnippetContainer"><div class="codeSnippetContainerTabs"><div id="ID0EACA_tab1" class="codeSnippetContainerTabSingle">C#</div></div><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetToolBar"><div class="codeSnippetToolBarText"><a id="ID0EACA_copyCode" href="#" class="copyCodeSnippet" onclick="javascript:CopyToClipboard('ID0EACA');return false;" title="Copy">Copy</a></div></div><div id="ID0EACA_code_Div1" class="codeSnippetContainerCode" style="display: block"><pre xml:space="preserve"><span class="keyword">public</span> <span class="keyword">enum</span> <span class="identifier">SpriteCollisionMethod</span></pre></div></div></div><script type="text/javascript">AddLanguageTabSet("ID0EACA");</script></div><div id="enumerationSection"><div class="collapsibleAreaRegion"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('ID2RB')" onkeypress="SectionExpandCollapse_CheckKey('ID2RB', event)" tabindex="0"><img id="ID2RBToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />Members</span></div><div id="ID2RBSection" class="collapsibleSection"><table id="enumMemberList" class="members"><tr><th class="iconColumn">
 
</th><th>Member name</th><th>Value</th><th>Description</th></tr><tr><td /><td target="F:SpriteLibrary.SpriteCollisionMethod.rectangle"><span class="selflink">rectangle</span></td><td>0</td><td>
Checks if the two rectangles that contain the sprites overlap. Each rectangle is the starting location of the sprite
(top left) with the sprite width, and height marking the other sides of the rectangle.
</td></tr><tr><td /><td target="F:SpriteLibrary.SpriteCollisionMethod.circle"><span class="selflink">circle</span></td><td>1</td><td>
Draws a circle (ellipse) inside the sprite rectangles and see if those ellipses overlap
</td></tr><tr><td /><td target="F:SpriteLibrary.SpriteCollisionMethod.transparency"><span class="selflink">transparency</span></td><td>2</td><td>
Check to see if nontransparent portions of a sprite collide. Not working.
</td></tr></table></div></div><div class="collapsibleAreaRegion" id="seeAlsoSection"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('ID3RB')" onkeypress="SectionExpandCollapse_CheckKey('ID3RB', event)" tabindex="0"><img id="ID3RBToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />See Also</span></div><div id="ID3RBSection" class="collapsibleSection"><h4 class="subHeading">Reference</h4><div class="seeAlsoStyle"><a href="6b7227c0-7a6a-6342-3b08-917c7de429cc.htm">SpriteLibrary Namespace</a></div></div></div></div><div id="pageFooter" class="pageFooter"> </div></body></html>