moagg.model.object
Interface ShootableObject
- All Superinterfaces:
- DestroyableObject, MoaggGameObject
- All Known Subinterfaces:
- ShootableWithWarheadObject
- All Known Implementing Classes:
- Grenade, Laser, Missile, Projectile
public interface ShootableObject
- extends MoaggGameObject, DestroyableObject
Game objects (such as projectiles, missiles, etc.) that can be shot/launched
by other game objects have to implement this interface.
getShooter
ShooterObject getShooter()
- Returns:
- The ShooterObject that shooted this projectile.
getDamage
int getDamage()
- Returns:
- The damage points of this projectile.
setDamage
void setDamage(int damage)
- Parameters:
damage
- The new damage points to set for this projectile.
isDestroyableByProjectile
boolean isDestroyableByProjectile()
- Returns:
- true, if this projectile can be destroyed by other projectiles, else false.
Copyright © 2008. All Rights Reserved.