public interface DamagingProjectileAPI extends CombatEntityAPI
Modifier and Type | Method and Description |
---|---|
void |
addDamagedAlready(CombatEntityAPI c)
Only supported by damaging explosions, not other types of projectiles.
|
boolean |
didDamage()
Whether the projectile already did its damage and is now fading out.
|
float |
getBaseDamageAmount()
Does not include damage reduction from projectile fading out or having done damage
|
float |
getBrightness() |
DamageAPI |
getDamage() |
float |
getDamageAmount() |
java.util.List<CombatEntityAPI> |
getDamagedAlready() |
CombatEntityAPI |
getDamageTarget() |
DamageType |
getDamageType() |
float |
getElapsed()
Time the projectile has been alive.
|
float |
getEmpAmount() |
float |
getMoveSpeed() |
ProjectileSpecAPI |
getProjectileSpec() |
java.lang.String |
getProjectileSpecId() |
ShipAPI |
getSource()
Generally a ShipAPI for the ship that ultimately fired this weapon.
|
Vector2f |
getSpawnLocation() |
ProjectileSpawnType |
getSpawnType() |
Vector2f |
getTailEnd()
Only non-null for "moving ray" and "ballistic projectile" type projectiles, not missiles/plasma shots/etc.
|
WeaponAPI |
getWeapon() |
boolean |
isFading() |
boolean |
isFromMissile() |
void |
removeDamagedAlready(CombatEntityAPI c)
Only supported by damaging explosions, not other types of projectiles.
|
void |
setDamageAmount(float damage) |
void |
setFromMissile(boolean fromMissile)
Should be set to true for BALLISTIC, BALLISTIC_AS_BEAM, and PLASMA_SHOT projectiles
spawned from a missile.
|
void |
setSource(ShipAPI source) |
getAI, getAngularVelocity, getCollisionClass, getCollisionRadius, getCustomData, getExactBounds, getFacing, getHitpoints, getHullLevel, getLocation, getMass, getMaxHitpoints, getOwner, getShield, getVelocity, isExpired, removeCustomData, setAngularVelocity, setCollisionClass, setCollisionRadius, setCustomData, setFacing, setHitpoints, setMass, setOwner
DamageType getDamageType()
float getDamageAmount()
float getBaseDamageAmount()
float getEmpAmount()
void setDamageAmount(float damage)
WeaponAPI getWeapon()
boolean didDamage()
CombatEntityAPI getDamageTarget()
java.lang.String getProjectileSpecId()
ShipAPI getSource()
void setSource(ShipAPI source)
boolean isFading()
ProjectileSpawnType getSpawnType()
float getElapsed()
DamageAPI getDamage()
boolean isFromMissile()
void setFromMissile(boolean fromMissile)
fromMissile
- void removeDamagedAlready(CombatEntityAPI c)
c
- void addDamagedAlready(CombatEntityAPI c)
c
- float getMoveSpeed()
Vector2f getSpawnLocation()
ProjectileSpecAPI getProjectileSpec()
float getBrightness()
Vector2f getTailEnd()
java.util.List<CombatEntityAPI> getDamagedAlready()
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.