You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OtterPlayGround/Docs/class_otter_1_1_movement.html

629 lines
51 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>Otter: Otter.Movement Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="otterlogosmall.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Otter
&#160;<span id="projectnumber">0.9.8.91</span>
</div>
<div id="projectbrief">2d Game Development Framework based on SFML.Net</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Packages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_otter_1_1_movement.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Properties</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_otter_1_1_movement-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Otter.Movement Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A base class for <a class="el" href="class_otter_1_1_movement.html" title="A base class for Movement Components to extend. ">Movement</a> Components to extend.
<a href="class_otter_1_1_movement.html#details">More...</a></p>
<p>Inherits <a class="el" href="class_otter_1_1_component.html">Otter.Component</a>.</p>
<p>Inherited by <a class="el" href="class_otter_1_1_basic_movement.html">Otter.BasicMovement</a>, and <a class="el" href="class_otter_1_1_platforming_movement.html">Otter.PlatformingMovement</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:acf43e65ccec01d05e28f03571175bc7e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#acf43e65ccec01d05e28f03571175bc7e">AddCollision</a> (params int[] tags)</td></tr>
<tr class="memdesc:acf43e65ccec01d05e28f03571175bc7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a tag that the <a class="el" href="class_otter_1_1_collider.html" title="The base class used for collision detection. Entities contain Colliders that can check for collisions...">Collider</a> should check for collisions with. <a href="#acf43e65ccec01d05e28f03571175bc7e">More...</a><br/></td></tr>
<tr class="separator:acf43e65ccec01d05e28f03571175bc7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bc2d85e90c87fecdd54f9b023333d9c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#a1bc2d85e90c87fecdd54f9b023333d9c">AddCollision</a> (params Enum[] tags)</td></tr>
<tr class="memdesc:a1bc2d85e90c87fecdd54f9b023333d9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a tag that the <a class="el" href="class_otter_1_1_collider.html" title="The base class used for collision detection. Entities contain Colliders that can check for collisions...">Collider</a> should check for collisions with. <a href="#a1bc2d85e90c87fecdd54f9b023333d9c">More...</a><br/></td></tr>
<tr class="separator:a1bc2d85e90c87fecdd54f9b023333d9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f47e7482d46f0515b699e7ab526b1e8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#a5f47e7482d46f0515b699e7ab526b1e8">RemoveCollision</a> (params int[] tags)</td></tr>
<tr class="memdesc:a5f47e7482d46f0515b699e7ab526b1e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove a tag from the collision checking. <a href="#a5f47e7482d46f0515b699e7ab526b1e8">More...</a><br/></td></tr>
<tr class="separator:a5f47e7482d46f0515b699e7ab526b1e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ebcbe4d84ab546d3fc1f93c349ae9b5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#a8ebcbe4d84ab546d3fc1f93c349ae9b5">MoveX</a> (int speed, <a class="el" href="class_otter_1_1_collider.html">Collider</a> collider=null)</td></tr>
<tr class="memdesc:a8ebcbe4d84ab546d3fc1f93c349ae9b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Move the object in the X axis by the value of speed. Sweeping collision test. <a href="#a8ebcbe4d84ab546d3fc1f93c349ae9b5">More...</a><br/></td></tr>
<tr class="separator:a8ebcbe4d84ab546d3fc1f93c349ae9b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7874ba8b1aa41d4aa54dc62fbc8ccf5c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#a7874ba8b1aa41d4aa54dc62fbc8ccf5c">MoveY</a> (int speed, <a class="el" href="class_otter_1_1_collider.html">Collider</a> collider=null)</td></tr>
<tr class="memdesc:a7874ba8b1aa41d4aa54dc62fbc8ccf5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Move the object in the Y axis by the value of speed. Sweeping collision test. <a href="#a7874ba8b1aa41d4aa54dc62fbc8ccf5c">More...</a><br/></td></tr>
<tr class="separator:a7874ba8b1aa41d4aa54dc62fbc8ccf5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1430d948965b5a91e185d90632a0d3dd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#a1430d948965b5a91e185d90632a0d3dd">MoveCollideX</a> (<a class="el" href="class_otter_1_1_collider.html">Collider</a> collider)</td></tr>
<tr class="memdesc:a1430d948965b5a91e185d90632a0d3dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when MoveX collides with a collider. <a href="#a1430d948965b5a91e185d90632a0d3dd">More...</a><br/></td></tr>
<tr class="separator:a1430d948965b5a91e185d90632a0d3dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c7b1c64e25dd1d7c6a6fd2ed880dcf1"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#a8c7b1c64e25dd1d7c6a6fd2ed880dcf1">MoveCollideY</a> (<a class="el" href="class_otter_1_1_collider.html">Collider</a> collider)</td></tr>
<tr class="memdesc:a8c7b1c64e25dd1d7c6a6fd2ed880dcf1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when MoveY collides with a collider. <a href="#a8c7b1c64e25dd1d7c6a6fd2ed880dcf1">More...</a><br/></td></tr>
<tr class="separator:a8c7b1c64e25dd1d7c6a6fd2ed880dcf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae36e61c068c56418e61f751757c610d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#aae36e61c068c56418e61f751757c610d">MoveXY</a> (int speedX, int speedY, <a class="el" href="class_otter_1_1_collider.html">Collider</a> collider=null)</td></tr>
<tr class="memdesc:aae36e61c068c56418e61f751757c610d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shortcut to call both move x and move y. <a href="#aae36e61c068c56418e61f751757c610d">More...</a><br/></td></tr>
<tr class="separator:aae36e61c068c56418e61f751757c610d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_otter_1_1_component"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_otter_1_1_component')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_otter_1_1_component.html">Otter.Component</a></td></tr>
<tr class="memitem:a9614ef82f236ab6ed8c3cb9d7715e815 inherit pub_methods_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#a9614ef82f236ab6ed8c3cb9d7715e815">GetEntity&lt; T &gt;</a> ()</td></tr>
<tr class="memdesc:a9614ef82f236ab6ed8c3cb9d7715e815 inherit pub_methods_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a> as a specific Type. <a href="#a9614ef82f236ab6ed8c3cb9d7715e815">More...</a><br/></td></tr>
<tr class="separator:a9614ef82f236ab6ed8c3cb9d7715e815 inherit pub_methods_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a896ba54fa65a3208621eaa06e23ac042 inherit pub_methods_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#a896ba54fa65a3208621eaa06e23ac042">Added</a> ()</td></tr>
<tr class="memdesc:a896ba54fa65a3208621eaa06e23ac042 inherit pub_methods_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when the <a class="el" href="class_otter_1_1_component.html" title="Base Component class. Components can be added to Entities. ">Component</a> is added to the <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a>. <a href="#a896ba54fa65a3208621eaa06e23ac042">More...</a><br/></td></tr>
<tr class="separator:a896ba54fa65a3208621eaa06e23ac042 inherit pub_methods_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36bfe8aa7c9d8e9a71d0265ed3118e81 inherit pub_methods_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#a36bfe8aa7c9d8e9a71d0265ed3118e81">Removed</a> ()</td></tr>
<tr class="memdesc:a36bfe8aa7c9d8e9a71d0265ed3118e81 inherit pub_methods_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called when the <a class="el" href="class_otter_1_1_component.html" title="Base Component class. Components can be added to Entities. ">Component</a> is removed from the <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a>. <a href="#a36bfe8aa7c9d8e9a71d0265ed3118e81">More...</a><br/></td></tr>
<tr class="separator:a36bfe8aa7c9d8e9a71d0265ed3118e81 inherit pub_methods_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0ab335d5603e5f09268e360a0710d09 inherit pub_methods_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#ac0ab335d5603e5f09268e360a0710d09">RemoveSelf</a> ()</td></tr>
<tr class="memdesc:ac0ab335d5603e5f09268e360a0710d09 inherit pub_methods_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes the <a class="el" href="class_otter_1_1_component.html" title="Base Component class. Components can be added to Entities. ">Component</a> from its parent <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a>. <a href="#ac0ab335d5603e5f09268e360a0710d09">More...</a><br/></td></tr>
<tr class="separator:ac0ab335d5603e5f09268e360a0710d09 inherit pub_methods_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44d89b80a8843ac6042dbfd4793a8df5 inherit pub_methods_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#a44d89b80a8843ac6042dbfd4793a8df5">UpdateFirst</a> ()</td></tr>
<tr class="memdesc:a44d89b80a8843ac6042dbfd4793a8df5 inherit pub_methods_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called during the UpdateFirst on the parent <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a>. <a href="#a44d89b80a8843ac6042dbfd4793a8df5">More...</a><br/></td></tr>
<tr class="separator:a44d89b80a8843ac6042dbfd4793a8df5 inherit pub_methods_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae777aef927019fdb858e31de6cf79909 inherit pub_methods_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#ae777aef927019fdb858e31de6cf79909">Update</a> ()</td></tr>
<tr class="memdesc:ae777aef927019fdb858e31de6cf79909 inherit pub_methods_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called during the Update on the parent <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a>. <a href="#ae777aef927019fdb858e31de6cf79909">More...</a><br/></td></tr>
<tr class="separator:ae777aef927019fdb858e31de6cf79909 inherit pub_methods_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cbb5cdad72e0ea64e2f7516e025bb11 inherit pub_methods_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#a2cbb5cdad72e0ea64e2f7516e025bb11">Render</a> ()</td></tr>
<tr class="memdesc:a2cbb5cdad72e0ea64e2f7516e025bb11 inherit pub_methods_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called during the Render on the parent <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a>. <a href="#a2cbb5cdad72e0ea64e2f7516e025bb11">More...</a><br/></td></tr>
<tr class="separator:a2cbb5cdad72e0ea64e2f7516e025bb11 inherit pub_methods_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7b18954fddd565ee9514cc2046b7cea inherit pub_methods_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#af7b18954fddd565ee9514cc2046b7cea">UpdateLast</a> ()</td></tr>
<tr class="memdesc:af7b18954fddd565ee9514cc2046b7cea inherit pub_methods_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called during the UpdateLast on the parent <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a>. <a href="#af7b18954fddd565ee9514cc2046b7cea">More...</a><br/></td></tr>
<tr class="separator:af7b18954fddd565ee9514cc2046b7cea inherit pub_methods_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bc7ea52a216ad05157e7ba5dec11672 inherit pub_methods_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#a5bc7ea52a216ad05157e7ba5dec11672">GetComponent&lt; T &gt;</a> ()</td></tr>
<tr class="memdesc:a5bc7ea52a216ad05157e7ba5dec11672 inherit pub_methods_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the first <a class="el" href="class_otter_1_1_component.html" title="Base Component class. Components can be added to Entities. ">Component</a> of type T from this <a class="el" href="class_otter_1_1_component.html" title="Base Component class. Components can be added to Entities. ">Component</a>'s <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a>. <a href="#a5bc7ea52a216ad05157e7ba5dec11672">More...</a><br/></td></tr>
<tr class="separator:a5bc7ea52a216ad05157e7ba5dec11672 inherit pub_methods_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ee21d56d7c47862da8be5e52cefb529 inherit pub_methods_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">List&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#a0ee21d56d7c47862da8be5e52cefb529">GetComponents&lt; T &gt;</a> ()</td></tr>
<tr class="memdesc:a0ee21d56d7c47862da8be5e52cefb529 inherit pub_methods_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a list of Components of type T from this <a class="el" href="class_otter_1_1_component.html" title="Base Component class. Components can be added to Entities. ">Component</a>'s <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a>. <a href="#a0ee21d56d7c47862da8be5e52cefb529">More...</a><br/></td></tr>
<tr class="separator:a0ee21d56d7c47862da8be5e52cefb529 inherit pub_methods_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a9b58fe3e663441bf8d09f23144bfe014"><td class="memItemLeft" align="right" valign="top">Action&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#a9b58fe3e663441bf8d09f23144bfe014">OnMove</a></td></tr>
<tr class="memdesc:a9b58fe3e663441bf8d09f23144bfe014"><td class="mdescLeft">&#160;</td><td class="mdescRight">An action triggered after movement as been applied. Up to subclasses to implement. <a href="#a9b58fe3e663441bf8d09f23144bfe014">More...</a><br/></td></tr>
<tr class="separator:a9b58fe3e663441bf8d09f23144bfe014"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c8b05835cc53798ade9dcd5bd6a3393"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#a4c8b05835cc53798ade9dcd5bd6a3393">SpeedScale</a> = 100</td></tr>
<tr class="memdesc:a4c8b05835cc53798ade9dcd5bd6a3393"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines how many units represent 1 pixel. Default is 100. Example: A speed of 100 would move the object 1 pixel per update. <a href="#a4c8b05835cc53798ade9dcd5bd6a3393">More...</a><br/></td></tr>
<tr class="separator:a4c8b05835cc53798ade9dcd5bd6a3393"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2e1eda871b10ff547c25b671acff6f7"><td class="memItemLeft" align="right" valign="top">new <a class="el" href="class_otter_1_1_collider.html">Collider</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#ae2e1eda871b10ff547c25b671acff6f7">Collider</a></td></tr>
<tr class="memdesc:ae2e1eda871b10ff547c25b671acff6f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">The main <a class="el" href="class_otter_1_1_collider.html" title="The base class used for collision detection. Entities contain Colliders that can check for collisions...">Collider</a> to use for detecting collisions. If this is not set, no collisions will register at all! <a href="#ae2e1eda871b10ff547c25b671acff6f7">More...</a><br/></td></tr>
<tr class="separator:ae2e1eda871b10ff547c25b671acff6f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a891d080787b750c89779bdefe687cdd7"><td class="memItemLeft" align="right" valign="top">Action&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#a891d080787b750c89779bdefe687cdd7">OnCollideX</a></td></tr>
<tr class="memdesc:a891d080787b750c89779bdefe687cdd7"><td class="mdescLeft">&#160;</td><td class="mdescRight">An action triggered when there is a collision in the X axis. <a href="#a891d080787b750c89779bdefe687cdd7">More...</a><br/></td></tr>
<tr class="separator:a891d080787b750c89779bdefe687cdd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a166a0bb20acc564bc92597bfc7edfed4"><td class="memItemLeft" align="right" valign="top">Action&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#a166a0bb20acc564bc92597bfc7edfed4">OnCollideY</a></td></tr>
<tr class="memdesc:a166a0bb20acc564bc92597bfc7edfed4"><td class="mdescLeft">&#160;</td><td class="mdescRight">An action triggered when there is a collision in the Y axis. <a href="#a166a0bb20acc564bc92597bfc7edfed4">More...</a><br/></td></tr>
<tr class="separator:a166a0bb20acc564bc92597bfc7edfed4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_class_otter_1_1_component"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_class_otter_1_1_component')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="class_otter_1_1_component.html">Otter.Component</a></td></tr>
<tr class="memitem:a622eab27046de9233e421bf9e18824fe inherit pub_attribs_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_otter_1_1_entity.html">Entity</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#a622eab27046de9233e421bf9e18824fe">Entity</a></td></tr>
<tr class="memdesc:a622eab27046de9233e421bf9e18824fe inherit pub_attribs_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">The parent <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a> of the <a class="el" href="class_otter_1_1_component.html" title="Base Component class. Components can be added to Entities. ">Component</a>. <a href="#a622eab27046de9233e421bf9e18824fe">More...</a><br/></td></tr>
<tr class="separator:a622eab27046de9233e421bf9e18824fe inherit pub_attribs_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3503c833d8f7da07162182b3af743adb inherit pub_attribs_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#a3503c833d8f7da07162182b3af743adb">RenderAfterEntity</a> = true</td></tr>
<tr class="memdesc:a3503c833d8f7da07162182b3af743adb inherit pub_attribs_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if the <a class="el" href="class_otter_1_1_component.html" title="Base Component class. Components can be added to Entities. ">Component</a> should render after the <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a> has rendered. <a href="#a3503c833d8f7da07162182b3af743adb">More...</a><br/></td></tr>
<tr class="separator:a3503c833d8f7da07162182b3af743adb inherit pub_attribs_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92cf7d2d7058c35ee879daf95728c390 inherit pub_attribs_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#a92cf7d2d7058c35ee879daf95728c390">Visible</a> = true</td></tr>
<tr class="memdesc:a92cf7d2d7058c35ee879daf95728c390 inherit pub_attribs_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if the <a class="el" href="class_otter_1_1_component.html" title="Base Component class. Components can be added to Entities. ">Component</a> will render. <a href="#a92cf7d2d7058c35ee879daf95728c390">More...</a><br/></td></tr>
<tr class="separator:a92cf7d2d7058c35ee879daf95728c390 inherit pub_attribs_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec8b7e96ceae938a19f99d6e38bd81a3 inherit pub_attribs_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#aec8b7e96ceae938a19f99d6e38bd81a3">Timer</a> = 0</td></tr>
<tr class="memdesc:aec8b7e96ceae938a19f99d6e38bd81a3 inherit pub_attribs_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">How long the <a class="el" href="class_otter_1_1_component.html" title="Base Component class. Components can be added to Entities. ">Component</a> has been alive (added to an <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a> and updated.) <a href="#aec8b7e96ceae938a19f99d6e38bd81a3">More...</a><br/></td></tr>
<tr class="separator:aec8b7e96ceae938a19f99d6e38bd81a3 inherit pub_attribs_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a08a3b4641bcd97fe4b9783522fa9c11b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a08a3b4641bcd97fe4b9783522fa9c11b"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>MoveBufferX</b> = 0</td></tr>
<tr class="separator:a08a3b4641bcd97fe4b9783522fa9c11b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a7381382d3dc1d2716cc23ca44516eeac"><td class="memItemLeft" align="right" valign="top">List&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_movement.html#a7381382d3dc1d2716cc23ca44516eeac">CollisionsSolid</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a7381382d3dc1d2716cc23ca44516eeac"><td class="mdescLeft">&#160;</td><td class="mdescRight">The list of types that the <a class="el" href="class_otter_1_1_collider.html" title="The base class used for collision detection. Entities contain Colliders that can check for collisions...">Collider</a> should check for collisions for when moving. <a href="#a7381382d3dc1d2716cc23ca44516eeac">More...</a><br/></td></tr>
<tr class="separator:a7381382d3dc1d2716cc23ca44516eeac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_class_otter_1_1_component"><td colspan="2" onclick="javascript:toggleInherit('properties_class_otter_1_1_component')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="class_otter_1_1_component.html">Otter.Component</a></td></tr>
<tr class="memitem:ac0f8379345a3a41105d1f78413277edd inherit properties_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#ac0f8379345a3a41105d1f78413277edd">InstanceId</a><code> [get, set]</code></td></tr>
<tr class="memdesc:ac0f8379345a3a41105d1f78413277edd inherit properties_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="class_otter_1_1_component.html" title="Base Component class. Components can be added to Entities. ">Component</a>'s id for the <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a> its attached to. <a href="#ac0f8379345a3a41105d1f78413277edd">More...</a><br/></td></tr>
<tr class="separator:ac0f8379345a3a41105d1f78413277edd inherit properties_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9b2b3b286b4e37001be95a0674b8285 inherit properties_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_otter_1_1_scene.html">Scene</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#af9b2b3b286b4e37001be95a0674b8285">Scene</a><code> [get]</code></td></tr>
<tr class="memdesc:af9b2b3b286b4e37001be95a0674b8285 inherit properties_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="class_otter_1_1_scene.html" title="Class used to manage Entities. The active Game should update the active Scene, which then updates all...">Scene</a> that the parent <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a> is in. <a href="#af9b2b3b286b4e37001be95a0674b8285">More...</a><br/></td></tr>
<tr class="separator:af9b2b3b286b4e37001be95a0674b8285 inherit properties_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c5894d2272d5dd4259d952fed3c4532 inherit properties_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_otter_1_1_collider.html">Collider</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#a5c5894d2272d5dd4259d952fed3c4532">Collider</a><code> [get]</code></td></tr>
<tr class="memdesc:a5c5894d2272d5dd4259d952fed3c4532 inherit properties_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">The first <a class="el" href="class_otter_1_1_collider.html" title="The base class used for collision detection. Entities contain Colliders that can check for collisions...">Collider</a> of the parent <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a>. <a href="#a5c5894d2272d5dd4259d952fed3c4532">More...</a><br/></td></tr>
<tr class="separator:a5c5894d2272d5dd4259d952fed3c4532 inherit properties_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1f59cc511b6b9b0ed8efd946dad6ba5 inherit properties_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_otter_1_1_graphic.html">Graphic</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#ae1f59cc511b6b9b0ed8efd946dad6ba5">Graphic</a><code> [get]</code></td></tr>
<tr class="memdesc:ae1f59cc511b6b9b0ed8efd946dad6ba5 inherit properties_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">The first <a class="el" href="class_otter_1_1_graphic.html" title="Base abstract class used for anything that can be rendered. ">Graphic</a> of the parent <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a>. <a href="#ae1f59cc511b6b9b0ed8efd946dad6ba5">More...</a><br/></td></tr>
<tr class="separator:ae1f59cc511b6b9b0ed8efd946dad6ba5 inherit properties_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af59740c53a5d56085985232b6da1be3e inherit properties_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_otter_1_1_graphic.html">Graphic</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#af59740c53a5d56085985232b6da1be3e">Graphics</a><code> [get]</code></td></tr>
<tr class="memdesc:af59740c53a5d56085985232b6da1be3e inherit properties_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">The list of Graphics from the parent <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a>. <a href="#af59740c53a5d56085985232b6da1be3e">More...</a><br/></td></tr>
<tr class="separator:af59740c53a5d56085985232b6da1be3e inherit properties_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0905b7a81b660e8aa4b1c4eb3aa7abc inherit properties_class_otter_1_1_component"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_otter_1_1_collider.html">Collider</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_component.html#ab0905b7a81b660e8aa4b1c4eb3aa7abc">Colliders</a><code> [get]</code></td></tr>
<tr class="memdesc:ab0905b7a81b660e8aa4b1c4eb3aa7abc inherit properties_class_otter_1_1_component"><td class="mdescLeft">&#160;</td><td class="mdescRight">The list of Colliders from the parent <a class="el" href="class_otter_1_1_entity.html" title="Class used for a game object. The bread and butter of your game. Entities are added to Scenes which a...">Entity</a>. <a href="#ab0905b7a81b660e8aa4b1c4eb3aa7abc">More...</a><br/></td></tr>
<tr class="separator:ab0905b7a81b660e8aa4b1c4eb3aa7abc inherit properties_class_otter_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A base class for <a class="el" href="class_otter_1_1_movement.html" title="A base class for Movement Components to extend. ">Movement</a> Components to extend. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="acf43e65ccec01d05e28f03571175bc7e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Otter.Movement.AddCollision </td>
<td>(</td>
<td class="paramtype">params int[]&#160;</td>
<td class="paramname"><em>tags</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Register a tag that the <a class="el" href="class_otter_1_1_collider.html" title="The base class used for collision detection. Entities contain Colliders that can check for collisions...">Collider</a> should check for collisions with. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tags</td><td>The tags to collide with.</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a1bc2d85e90c87fecdd54f9b023333d9c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Otter.Movement.AddCollision </td>
<td>(</td>
<td class="paramtype">params Enum[]&#160;</td>
<td class="paramname"><em>tags</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Register a tag that the <a class="el" href="class_otter_1_1_collider.html" title="The base class used for collision detection. Entities contain Colliders that can check for collisions...">Collider</a> should check for collisions with. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tags</td><td>The tags to collide with.</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a1430d948965b5a91e185d90632a0d3dd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Otter.Movement.MoveCollideX </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_otter_1_1_collider.html">Collider</a>&#160;</td>
<td class="paramname"><em>collider</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Called when MoveX collides with a collider. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">collider</td><td>The collider that was hit.</td></tr>
</table>
</dd>
</dl>
<p>Reimplemented in <a class="el" href="class_otter_1_1_platforming_movement.html#aabe798c436743fc9de8fcd37100d748f">Otter.PlatformingMovement</a>, and <a class="el" href="class_otter_1_1_basic_movement.html#ad36eba94898422a22bca8817e021fb91">Otter.BasicMovement</a>.</p>
</div>
</div>
<a class="anchor" id="a8c7b1c64e25dd1d7c6a6fd2ed880dcf1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Otter.Movement.MoveCollideY </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_otter_1_1_collider.html">Collider</a>&#160;</td>
<td class="paramname"><em>collider</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Called when MoveY collides with a collider. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">collider</td><td>The collider that was hit.</td></tr>
</table>
</dd>
</dl>
<p>Reimplemented in <a class="el" href="class_otter_1_1_platforming_movement.html#acc4b97411a8accce0bcdb2b3af3fd67c">Otter.PlatformingMovement</a>, and <a class="el" href="class_otter_1_1_basic_movement.html#a016d9124a0ce8359fb2a6615e5f18c10">Otter.BasicMovement</a>.</p>
</div>
</div>
<a class="anchor" id="a8ebcbe4d84ab546d3fc1f93c349ae9b5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Otter.Movement.MoveX </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>speed</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_otter_1_1_collider.html">Collider</a>&#160;</td>
<td class="paramname"><em>collider</em> = <code>null</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Move the object in the X axis by the value of speed. Sweeping collision test. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">speed</td><td>The speed to move by (remember SpeedScale is applied.)</td></tr>
<tr><td class="paramname">collider</td><td>The <a class="el" href="class_otter_1_1_collider.html" title="The base class used for collision detection. Entities contain Colliders that can check for collisions...">Collider</a> to use when moving.</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aae36e61c068c56418e61f751757c610d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Otter.Movement.MoveXY </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>speedX</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>speedY</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_otter_1_1_collider.html">Collider</a>&#160;</td>
<td class="paramname"><em>collider</em> = <code>null</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Shortcut to call both move x and move y. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">speedX</td><td></td></tr>
<tr><td class="paramname">speedY</td><td></td></tr>
<tr><td class="paramname">collider</td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a7874ba8b1aa41d4aa54dc62fbc8ccf5c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Otter.Movement.MoveY </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>speed</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="class_otter_1_1_collider.html">Collider</a>&#160;</td>
<td class="paramname"><em>collider</em> = <code>null</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Move the object in the Y axis by the value of speed. Sweeping collision test. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">speed</td><td>The speed to move by (remember SpeedScale is applied.)</td></tr>
<tr><td class="paramname">collider</td><td>The <a class="el" href="class_otter_1_1_collider.html" title="The base class used for collision detection. Entities contain Colliders that can check for collisions...">Collider</a> to use when moving.</td></tr>
</table>
</dd>
</dl>
<p>Reimplemented in <a class="el" href="class_otter_1_1_platforming_movement.html#a97583c4f997d98d8d417d423d96b1648">Otter.PlatformingMovement</a>.</p>
</div>
</div>
<a class="anchor" id="a5f47e7482d46f0515b699e7ab526b1e8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Otter.Movement.RemoveCollision </td>
<td>(</td>
<td class="paramtype">params int[]&#160;</td>
<td class="paramname"><em>tags</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Remove a tag from the collision checking. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">tags</td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ae2e1eda871b10ff547c25b671acff6f7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">new <a class="el" href="class_otter_1_1_collider.html">Collider</a> Otter.Movement.Collider</td>
</tr>
</table>
</div><div class="memdoc">
<p>The main <a class="el" href="class_otter_1_1_collider.html" title="The base class used for collision detection. Entities contain Colliders that can check for collisions...">Collider</a> to use for detecting collisions. If this is not set, no collisions will register at all! </p>
</div>
</div>
<a class="anchor" id="a891d080787b750c89779bdefe687cdd7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Action Otter.Movement.OnCollideX</td>
</tr>
</table>
</div><div class="memdoc">
<p>An action triggered when there is a collision in the X axis. </p>
</div>
</div>
<a class="anchor" id="a166a0bb20acc564bc92597bfc7edfed4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Action Otter.Movement.OnCollideY</td>
</tr>
</table>
</div><div class="memdoc">
<p>An action triggered when there is a collision in the Y axis. </p>
</div>
</div>
<a class="anchor" id="a9b58fe3e663441bf8d09f23144bfe014"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Action Otter.Movement.OnMove</td>
</tr>
</table>
</div><div class="memdoc">
<p>An action triggered after movement as been applied. Up to subclasses to implement. </p>
</div>
</div>
<a class="anchor" id="a4c8b05835cc53798ade9dcd5bd6a3393"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Otter.Movement.SpeedScale = 100</td>
</tr>
</table>
</div><div class="memdoc">
<p>Determines how many units represent 1 pixel. Default is 100. Example: A speed of 100 would move the object 1 pixel per update. </p>
</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="a7381382d3dc1d2716cc23ca44516eeac"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">List&lt;int&gt; Otter.Movement.CollisionsSolid</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The list of types that the <a class="el" href="class_otter_1_1_collider.html" title="The base class used for collision detection. Entities contain Colliders that can check for collisions...">Collider</a> should check for collisions for when moving. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Otter/Components/Movement/Movement.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespace_otter.html">Otter</a></li><li class="navelem"><a class="el" href="class_otter_1_1_movement.html">Movement</a></li>
<li class="footer">Generated on Thu May 12 2016 18:16:52 for Otter by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
</ul>
</div>
</body>
</html>