<li><ahref="../../../Microsoft/Xna/Framework/Game.html"title="class in Microsoft.Xna.Framework"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../Microsoft/Xna/Framework/GameComponentCollection.html"title="class in Microsoft.Xna.Framework"><spanclass="strong">Next Class</span></a></li>
<dd><ahref="../../../Microsoft/Xna/Framework/IGameComponent.html"title="interface in Microsoft.Xna.Framework">IGameComponent</a>, <ahref="../../../Microsoft/Xna/Framework/IUpdateable.html"title="interface in Microsoft.Xna.Framework">IUpdateable</a>, System.IDisposable</dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><ahref="../../../Microsoft/Xna/Framework/DrawableGameComponent.html"title="class in Microsoft.Xna.Framework">DrawableGameComponent</a>, <ahref="../../../Microsoft/Xna/Framework/GamerServices/GamerServicesComponent.html"title="class in Microsoft.Xna.Framework.GamerServices">GamerServicesComponent</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">GameComponent</span>
extends java.lang.Object
implements <ahref="../../../Microsoft/Xna/Framework/IGameComponent.html"title="interface in Microsoft.Xna.Framework">IGameComponent</a>, <ahref="../../../Microsoft/Xna/Framework/IUpdateable.html"title="interface in Microsoft.Xna.Framework">IUpdateable</a>, System.IDisposable</pre>
<divclass="block">Base class for all XNA Framework game components.</div>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../Microsoft/Xna/Framework/GameComponent.html#GameComponent(Microsoft.Xna.Framework.Game)">GameComponent</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Game.html"title="class in Microsoft.Xna.Framework">Game</a> game)</code>
<divclass="block">Initializes a new instance of this class.</div>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/GameComponent.html#Update(Microsoft.Xna.Framework.GameTime)">Update</a></strong>(<ahref="../../../Microsoft/Xna/Framework/GameTime.html"title="class in Microsoft.Xna.Framework">GameTime</a> gameTime)</code>
<divclass="block">Called when the GameComponent needs to be updated.</div>
<divclass="block">Indicates whether GameComponent.Update should be called when Game.Update is called.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../Microsoft/Xna/Framework/IUpdateable.html#getEnabled()">getEnabled</a></code> in interface <code><ahref="../../../Microsoft/Xna/Framework/IUpdateable.html"title="interface in Microsoft.Xna.Framework">IUpdateable</a></code></dd>
<pre>public <ahref="../../../Microsoft/Xna/Framework/Game.html"title="class in Microsoft.Xna.Framework">Game</a> getGame()</pre>
<divclass="block">Gets the Game associated with this GameComponent.</div>
</li>
</ul>
<aname="getUpdateOrder()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getUpdateOrder</h4>
<pre>public int getUpdateOrder()</pre>
<divclass="block">Indicates the order in which the GameComponent should be updated relative to other GameComponent instances. Lower values are updated first.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../Microsoft/Xna/Framework/IUpdateable.html#getUpdateOrder()">getUpdateOrder</a></code> in interface <code><ahref="../../../Microsoft/Xna/Framework/IUpdateable.html"title="interface in Microsoft.Xna.Framework">IUpdateable</a></code></dd>
<divclass="block">Releases the unmanaged resources used by the GameComponent and optionally releases the managed resources.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>disposing</code> - true to release both managed and unmanaged resources; false to release only unmanaged resources.</dd></dl>
</li>
</ul>
<aname="Initialize()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Initialize</h4>
<pre>public void Initialize()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../Microsoft/Xna/Framework/IGameComponent.html#Initialize()">Initialize</a></code> in interface <code><ahref="../../../Microsoft/Xna/Framework/IGameComponent.html"title="interface in Microsoft.Xna.Framework">IGameComponent</a></code></dd>
<divclass="block">Called when the Enabled property changes. Raises the EnabledChanged event.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sender</code> - The GameComponent.</dd><dd><code>e</code> - Arguments to the EnabledChanged event.</dd></dl>
<divclass="block">Called when the UpdateOrder property changes. Raises the UpdateOrderChanged event.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sender</code> - The GameComponent.</dd><dd><code>e</code> - Arguments to the UpdateOrderChanged event.</dd></dl>
<pre>public void Update(<ahref="../../../Microsoft/Xna/Framework/GameTime.html"title="class in Microsoft.Xna.Framework">GameTime</a> gameTime)</pre>
<divclass="block">Called when the GameComponent needs to be updated. Override this method with component-specific update code.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../Microsoft/Xna/Framework/IUpdateable.html#Update(Microsoft.Xna.Framework.GameTime)">Update</a></code> in interface <code><ahref="../../../Microsoft/Xna/Framework/IUpdateable.html"title="interface in Microsoft.Xna.Framework">IUpdateable</a></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>gameTime</code> - Time elapsed since the last call to Update</dd></dl>
<li><ahref="../../../Microsoft/Xna/Framework/Game.html"title="class in Microsoft.Xna.Framework"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../Microsoft/Xna/Framework/GameComponentCollection.html"title="class in Microsoft.Xna.Framework"><spanclass="strong">Next Class</span></a></li>