* Check if the unit is still cached in the Map cache. * When the unit changes it needs to be re-cached. * @param invalid Get if the cache is invalid. * @param part Unit part to check. * @return Pointer to cache surface used. */
| 735 | * @return Pointer to cache surface used. |
| 736 | */ |
| 737 | Surface *BattleUnit::getCache(bool *invalid, int part) const |
| 738 | { |
| 739 | if (part < 0) part = 0; |
| 740 | *invalid = _cacheInvalid; |
| 741 | return _cache[part]; |
| 742 | } |
| 743 | |
| 744 | /** |
| 745 | * Kneel down. |
no outgoing calls
no test coverage detected