|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.user.GeneralUser
org.starhope.appius.game.npc.Ejecta
org.starhope.appius.game.npc.Projectile
public class Projectile
WRITEME: Document this type.
Nested Class Summary | |
---|---|
private static class |
Projectile.ProjectileWatcher
|
Field Summary | |
---|---|
private AbstractUser |
attacker
WRITEME: Document this brpocock@star-hope.org |
private DamageHitHandler |
hitEffect
WRITEME brpocock@star-hope.org |
private DamageMissHandler |
missEffect
WRITEME |
private DamageTypeRanks |
myDamage
WRITEME |
private AvatarClass |
myHitParticle
WRITEME: Document this brpocock@star-hope.org |
private AvatarClass |
myMissParticle
WRITEME: Document this brpocock@star-hope.org |
private AbstractUser |
myShooter
Who fired this shot |
private Projectile.ProjectileWatcher |
myWatcher
WRITEME: Document this brpocock@star-hope.org |
private static long |
serialVersionUID
Java serialisation unique ID |
private Coord3D |
startLocation
WRITEME: Document this brpocock@star-hope.org |
Fields inherited from class org.starhope.appius.user.GeneralUser |
---|
baseStats, collisionBounds, currentRoom, facing, lastUserMovement, pathFinder, userRecord |
Constructor Summary | |
---|---|
Projectile(AvatarClass avatar,
Room room,
Coord3D origin,
long birth,
Coord3D target,
double travelRate,
AbstractUser shooter,
AvatarClass hitParticle,
AvatarClass missParticle,
DamageTypeRanks damage)
Specify the avatar file to be provided to the client, and the point of origination, and motion vector. |
Method Summary | |
---|---|
static Projectile |
fire(AvatarClass avatar,
Coord3D target,
double travelRate,
AbstractUser shooter,
AvatarClass hitParticle,
AvatarClass missParticle,
DamageTypeRanks damage)
Specify the avatar file to be provided to the client, and the shooter, and motion vector. |
AbstractUser |
getAttacker()
|
DamageHitHandler |
getHitEffect()
|
AvatarClass |
getHitParticle()
|
DamageMissHandler |
getMissEffect()
|
AvatarClass |
getMissParticle()
|
AbstractUser |
getShooter()
|
Coord3D |
getStartLocation()
|
Projectile.ProjectileWatcher |
getWatcher()
|
void |
hit(AbstractUser victim)
|
void |
miss()
WRITEME: Document this method brpocock@star-hope.org |
void |
setAttacker(AbstractUser attacker)
|
void |
setHitEffect(DamageHitHandler newHitEffect)
|
void |
setMissEffect(DamageMissHandler newMissEffect)
|
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private DamageHitHandler hitEffect
private DamageMissHandler missEffect
private final AbstractUser myShooter
private final AvatarClass myHitParticle
private final AvatarClass myMissParticle
private final Projectile.ProjectileWatcher myWatcher
private AbstractUser attacker
private final Coord3D startLocation
private final DamageTypeRanks myDamage
Constructor Detail |
---|
public Projectile(AvatarClass avatar, Room room, Coord3D origin, long birth, Coord3D target, double travelRate, AbstractUser shooter, AvatarClass hitParticle, AvatarClass missParticle, DamageTypeRanks damage)
avatar
- The avatar file to be provided to the clientroom
- The room in which the Ejecta is bornorigin
- The point of originbirth
- The time of originationtarget
- The destination of motiontravelRate
- The rate of travelshooter
- person firing the shothitParticle
- particle to play on hitmissParticle
- particle to play on missdamage
- the type of damage to use for determining hitsMethod Detail |
---|
public static Projectile fire(AvatarClass avatar, Coord3D target, double travelRate, AbstractUser shooter, AvatarClass hitParticle, AvatarClass missParticle, DamageTypeRanks damage)
avatar
- The avatar file to be provided to the clienttarget
- The destination of motiontravelRate
- The rate of travelshooter
- person firing the shothitParticle
- particle to play on hitmissParticle
- particle to play on miss
public AbstractUser getAttacker()
public DamageHitHandler getHitEffect()
public AvatarClass getHitParticle()
public DamageMissHandler getMissEffect()
public AvatarClass getMissParticle()
public AbstractUser getShooter()
public Coord3D getStartLocation()
public Projectile.ProjectileWatcher getWatcher()
public void hit(AbstractUser victim)
victim
- WRITEMEpublic void miss()
public void setAttacker(AbstractUser attacker)
attacker
- the attacker to setpublic void setHitEffect(DamageHitHandler newHitEffect)
newHitEffect
- the hitEffect to setpublic void setMissEffect(DamageMissHandler newMissEffect)
newMissEffect
- the missEffect to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |