* Gets the project tile item. * Returns 0 when there is no item thrown. * @return Pointer to BattleItem. */
| 377 | * @return Pointer to BattleItem. |
| 378 | */ |
| 379 | BattleItem *Projectile::getItem() const |
| 380 | { |
| 381 | if (_action.type == BA_THROW) |
| 382 | return _action.weapon; |
| 383 | else |
| 384 | return 0; |
| 385 | } |
| 386 | |
| 387 | /** |
| 388 | * Gets the bullet sprite. |
no outgoing calls
no test coverage detected