RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.game.Projectile Class Reference

Public Member Functions

Projectile copy ()
int getClientTicks ()
int getCurve ()
int getDelay ()
int getDistance ()
int getDuration ()
int getEndHeight ()
int getId ()
int getOffsetX ()
int getOffsetY ()
int getStartHeight ()
 Projectile (int id)
 Projectile (int id, int delay, int duration, int startHeight, int endHeight)
 Projectile (int id, int delay, int duration, int startHeight, int endHeight, int curve)
 Projectile (int id, int delay, int duration, int startHeight, int endHeight, int curve, int distance)
 Projectile (int id, int delay, int duration, int startHeight, int endHeight, int curve, int distance, int offsetX, int offsetY)
void send (Mob source, Mob target)
void send (Mob source, Position target)
void setCurve (int curve)
void setDelay (int delay)
void setDistance (int distance)
void setDuration (int duration)
void setEndHeight (int endHeight)
void setId (int id)
void setOffsetX (int offsetX)
void setOffsetY (int offsetY)
void setStartHeight (int startHeight)

Static Public Attributes

static final int[] MAGIC_DELAYS = { 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5 }
 Magic combat projectile delays.
static final int[] RANGED_DELAYS = { 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4 }
 Ranged combat projectile delays.

Private Attributes

int curve
int delay
int distance
int duration
int endHeight
int id
int offsetX
int offsetY
int startHeight

Detailed Description

Definition at line 7 of file Projectile.java.

Constructor & Destructor Documentation

◆ Projectile() [1/5]

com.runehive.game.Projectile.Projectile ( int id,
int delay,
int duration,
int startHeight,
int endHeight,
int curve,
int distance,
int offsetX,
int offsetY )

Definition at line 25 of file Projectile.java.

25 {
26 setId(id);
27 setDelay(delay);
28 setDuration(duration);
29 setStartHeight(startHeight);
30 setEndHeight(endHeight);
31 setCurve(curve);
32 setDistance(distance);
33 setOffsetX(offsetX);
34 setOffsetY(offsetY);
35 }

References curve, delay, distance, duration, endHeight, offsetX, offsetY, setCurve(), setDelay(), setDistance(), setDuration(), setEndHeight(), setId(), setOffsetX(), setOffsetY(), setStartHeight(), and startHeight.

Here is the call graph for this function:

◆ Projectile() [2/5]

com.runehive.game.Projectile.Projectile ( int id,
int delay,
int duration,
int startHeight,
int endHeight,
int curve,
int distance )

Definition at line 37 of file Projectile.java.

37 {
38 this(id, delay, duration, startHeight, endHeight, curve, distance, 0, 0);
39 }

References curve, delay, distance, duration, endHeight, id, and startHeight.

◆ Projectile() [3/5]

com.runehive.game.Projectile.Projectile ( int id,
int delay,
int duration,
int startHeight,
int endHeight,
int curve )

Definition at line 41 of file Projectile.java.

41 {
42 this(id, delay, duration, startHeight, endHeight, curve, 64);
43 }

References curve, delay, duration, endHeight, id, and startHeight.

◆ Projectile() [4/5]

com.runehive.game.Projectile.Projectile ( int id,
int delay,
int duration,
int startHeight,
int endHeight )

Definition at line 45 of file Projectile.java.

45 {
46 this(id, delay, duration, startHeight, endHeight, 16);
47 }

References delay, duration, endHeight, id, and startHeight.

◆ Projectile() [5/5]

com.runehive.game.Projectile.Projectile ( int id)

Definition at line 49 of file Projectile.java.

49 {
50 this(id, 51, 68, 43, 31);
51 }

References id.

Member Function Documentation

◆ copy()

Projectile com.runehive.game.Projectile.copy ( )

Definition at line 133 of file Projectile.java.

133 {
134 return new Projectile(id, delay, duration, startHeight, endHeight, curve, distance, offsetX, offsetY);
135 }

References curve, delay, distance, duration, endHeight, offsetX, offsetY, and startHeight.

◆ getClientTicks()

int com.runehive.game.Projectile.getClientTicks ( )

Definition at line 137 of file Projectile.java.

137 {
138 return /*getDelay() + */getDuration();
139 }

References getDuration().

Here is the call graph for this function:

◆ getCurve()

int com.runehive.game.Projectile.getCurve ( )

Definition at line 101 of file Projectile.java.

101 {
102 return curve;
103 }

References curve.

◆ getDelay()

int com.runehive.game.Projectile.getDelay ( )

Definition at line 69 of file Projectile.java.

69 {
70 return delay;
71 }

References delay.

◆ getDistance()

int com.runehive.game.Projectile.getDistance ( )

Definition at line 109 of file Projectile.java.

109 {
110 return distance;
111 }

References distance.

◆ getDuration()

int com.runehive.game.Projectile.getDuration ( )

Definition at line 77 of file Projectile.java.

77 {
78 return duration;
79 }

References duration.

Referenced by getClientTicks(), and com.runehive.game.world.entity.combat.ranged.RangedAmmunition.sendProjectile().

Here is the caller graph for this function:

◆ getEndHeight()

int com.runehive.game.Projectile.getEndHeight ( )

Definition at line 93 of file Projectile.java.

93 {
94 return endHeight;
95 }

References endHeight.

◆ getId()

int com.runehive.game.Projectile.getId ( )

Definition at line 61 of file Projectile.java.

61 {
62 return id;
63 }

References id.

◆ getOffsetX()

int com.runehive.game.Projectile.getOffsetX ( )

Definition at line 117 of file Projectile.java.

117 {
118 return offsetX;
119 }

References offsetX.

◆ getOffsetY()

int com.runehive.game.Projectile.getOffsetY ( )

Definition at line 125 of file Projectile.java.

125 {
126 return offsetY;
127 }

References offsetY.

◆ getStartHeight()

int com.runehive.game.Projectile.getStartHeight ( )

Definition at line 85 of file Projectile.java.

85 {
86 return startHeight;
87 }

References startHeight.

◆ send() [1/2]

void com.runehive.game.Projectile.send ( Mob source,
Mob target )

Definition at line 53 of file Projectile.java.

53 {
54 World.sendProjectile(source, target, this);
55 }

References com.runehive.game.world.World.sendProjectile().

Referenced by com.runehive.game.world.entity.combat.ranged.RangedAmmunition.sendProjectile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ send() [2/2]

void com.runehive.game.Projectile.send ( Mob source,
Position target )

Definition at line 57 of file Projectile.java.

57 {
58 World.sendProjectile(source, target, this);
59 }

References com.runehive.game.world.World.sendProjectile().

Here is the call graph for this function:

◆ setCurve()

void com.runehive.game.Projectile.setCurve ( int curve)

Definition at line 105 of file Projectile.java.

105 {
106 this.curve = curve;
107 }

References curve.

Referenced by Projectile(), and com.runehive.game.world.entity.combat.ranged.RangedAmmunition.sendProjectile().

Here is the caller graph for this function:

◆ setDelay()

void com.runehive.game.Projectile.setDelay ( int delay)

Definition at line 73 of file Projectile.java.

73 {
74 this.delay = delay;
75 }

References delay.

Referenced by Projectile().

Here is the caller graph for this function:

◆ setDistance()

void com.runehive.game.Projectile.setDistance ( int distance)

Definition at line 113 of file Projectile.java.

113 {
114 this.distance = distance;
115 }

References distance.

Referenced by Projectile().

Here is the caller graph for this function:

◆ setDuration()

void com.runehive.game.Projectile.setDuration ( int duration)

Definition at line 81 of file Projectile.java.

81 {
82 this.duration = duration;
83 }

References duration.

Referenced by Projectile(), and com.runehive.game.world.entity.combat.ranged.RangedAmmunition.sendProjectile().

Here is the caller graph for this function:

◆ setEndHeight()

void com.runehive.game.Projectile.setEndHeight ( int endHeight)

Definition at line 97 of file Projectile.java.

97 {
98 this.endHeight = endHeight;
99 }

References endHeight.

Referenced by com.runehive.content.combat.cannon.CannonManager.getCannonFire(), and Projectile().

Here is the caller graph for this function:

◆ setId()

void com.runehive.game.Projectile.setId ( int id)

Definition at line 65 of file Projectile.java.

65 {
66 this.id = id;
67 }

References id.

Referenced by Projectile().

Here is the caller graph for this function:

◆ setOffsetX()

void com.runehive.game.Projectile.setOffsetX ( int offsetX)

Definition at line 121 of file Projectile.java.

121 {
122 this.offsetX = offsetX;
123 }

References offsetX.

Referenced by Projectile().

Here is the caller graph for this function:

◆ setOffsetY()

void com.runehive.game.Projectile.setOffsetY ( int offsetY)

Definition at line 129 of file Projectile.java.

129 {
130 this.offsetY = offsetY;
131 }

References offsetY.

Referenced by Projectile().

Here is the caller graph for this function:

◆ setStartHeight()

void com.runehive.game.Projectile.setStartHeight ( int startHeight)

Definition at line 89 of file Projectile.java.

89 {
90 this.startHeight = startHeight;
91 }

References startHeight.

Referenced by com.runehive.content.combat.cannon.CannonManager.getCannonFire(), and Projectile().

Here is the caller graph for this function:

Member Data Documentation

◆ curve

int com.runehive.game.Projectile.curve
private

Definition at line 20 of file Projectile.java.

Referenced by copy(), getCurve(), Projectile(), Projectile(), Projectile(), and setCurve().

◆ delay

int com.runehive.game.Projectile.delay
private

Definition at line 16 of file Projectile.java.

Referenced by copy(), getDelay(), Projectile(), Projectile(), Projectile(), Projectile(), and setDelay().

◆ distance

int com.runehive.game.Projectile.distance
private

Definition at line 21 of file Projectile.java.

Referenced by copy(), getDistance(), Projectile(), Projectile(), and setDistance().

◆ duration

int com.runehive.game.Projectile.duration
private

◆ endHeight

int com.runehive.game.Projectile.endHeight
private

◆ id

int com.runehive.game.Projectile.id
private

Definition at line 15 of file Projectile.java.

Referenced by getId(), Projectile(), Projectile(), Projectile(), Projectile(), and setId().

◆ MAGIC_DELAYS

final int [] com.runehive.game.Projectile.MAGIC_DELAYS = { 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5 }
static

Magic combat projectile delays.

Definition at line 10 of file Projectile.java.

10{ 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5 };

◆ offsetX

int com.runehive.game.Projectile.offsetX
private

Definition at line 22 of file Projectile.java.

Referenced by copy(), getOffsetX(), Projectile(), and setOffsetX().

◆ offsetY

int com.runehive.game.Projectile.offsetY
private

Definition at line 23 of file Projectile.java.

Referenced by copy(), getOffsetY(), Projectile(), and setOffsetY().

◆ RANGED_DELAYS

final int [] com.runehive.game.Projectile.RANGED_DELAYS = { 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4 }
static

Ranged combat projectile delays.

Definition at line 13 of file Projectile.java.

13{ 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4 };

◆ startHeight

int com.runehive.game.Projectile.startHeight
private

The documentation for this class was generated from the following file: