ss="return-type">int</span>&nbsp;<span class="element-name">setGamePiecesCount</span><wbr><span class="parameters">(int&nbsp;gamePiecesInIntakeCount)</span></div>
<div class="block"><h2>Sets the amount of game pieces in the intake.</h2>

 <p>Sets the <a href="#getGamePiecesAmount()"><code>getGamePiecesAmount()</code></a>} to a given amount.

 <p>Will make sure that the amount is non-negative and does not exceed the capacity</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>the actual (clamped) game piece count