* Get the sprite of a certain part of the tile. * @param part * @return Pointer to the sprite. */
| 610 | * @return Pointer to the sprite. |
| 611 | */ |
| 612 | Surface *Tile::getSprite(int part) const |
| 613 | { |
| 614 | if (_objects[part] == 0) |
| 615 | return 0; |
| 616 | |
| 617 | return _objects[part]->getDataset()->getSurfaceset()->getFrame(_objects[part]->getSprite(_currentFrame[part])); |
| 618 | } |
| 619 | |
| 620 | /** |
| 621 | * Set a unit on this tile. |
no test coverage detected