1package com.runehive.game;
3import com.runehive.game.world.entity.mob.Mob;
4import com.runehive.game.world.position.Position;
9 private final int creatorSize,
startDistanceOffset,
lockon,
delay,
startHeight,
endHeight,
projectileId,
speed,
slope,
angle,
radius,
stepMultiplier;
43 this(
start, end,
lockon,
projectileId,
speed,
delay,
startHeight,
endHeight, curve, 1, 0, 0);
46 public ProjectileTest(
Position source,
Position delta,
int slope,
int speed,
int projectileId,
int startHeight,
int endHeight,
int lockon,
int delay,
int creatorSize,
int startDistanceOffset) {
47 this(source, delta,
lockon,
projectileId,
speed,
delay,
startHeight,
endHeight,
slope,
creatorSize,
startDistanceOffset, 0);
55 return this.projectileId;
67 return this.endHeight;
71 return this.startHeight;
83 return this.creatorSize;
91 return this.startDistanceOffset;
112 return this.delay + (distance * this.stepMultiplier);
118 return (
int) Math.floor(
getDuration(distance) / 30D) + 1;
ProjectileTest(Position start, Position end, int lockon, int projectileId, int speed, int delay, int startHeight, int endHeight, int curve)
ProjectileTest(Position start, Position end, int lockon, int projectileId, int speed, int delay, int startHeight, int endHeight, int curve, int creatorSize, int startDistanceOffset, int stepMultiplier)
int getStartDistanceOffset()
final int startDistanceOffset
int getDuration(int distance)
ProjectileTest(Position source, Position delta, int slope, int speed, int projectileId, int startHeight, int endHeight, int lockon, int delay, int creatorSize, int startDistanceOffset)
int getHitDelay(int distance)
ProjectileTest(Mob source, Mob victim, int projectileId, int delay, int speed, int startHeight, int endHeight, int curve, int creatorSize, int stepMultiplier)
final boolean isPlayer()
Check if an entity is a player.
Represents a single tile on the game world.
int getY()
Gets the absolute y coordinate.
int getX()
Gets the absolute x coordinate.