* Sets the animation frame for animated units. * @param frame Frame number. */
| 131 | * @param frame Frame number. |
| 132 | */ |
| 133 | void UnitSprite::setAnimationFrame(int frame) |
| 134 | { |
| 135 | _animationFrame = frame; |
| 136 | } |
| 137 | /** |
| 138 | * Draws a unit, using the drawing rules of the unit. |
| 139 | * This function is called by Map, for each unit on the screen. |