RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.activity.inferno.InfernoBoss Class Reference
Inheritance diagram for com.runehive.content.activity.inferno.InfernoBoss:
Collaboration diagram for com.runehive.content.activity.inferno.InfernoBoss:

Public Member Functions

 InfernoBoss ()
void spawnbosswave (Player player)
Public Member Functions inherited from com.runehive.game.task.Task
Task attach (Object newKey)
 Attaches a new key.
synchronized final void cancel ()
 Cancels all subsequent executions.
synchronized final void cancel (boolean logout)
 Cancels all subsequent executions.
boolean canRun ()
 Determines if the task can be ran.
Optional< Object > getAttachment ()
String getCreationStackTraceStr ()
int getDelay ()
Long getElapsedTimeFromRunStartTime ()
Optional< Long > getRunStartTime ()
long getTaskCreationTime ()
String getTaskId ()
boolean isInstant ()
boolean isRunning ()
void setDelay (int delay)
 Sets the cyclic delay.
void setExecutionTime ()
 Task (boolean instant, int delay)
 Creates a new Task.
 Task (int delay)
 Creates a new Task that doesn't execute instantly.

Protected Member Functions

void execute ()
 A function representing the unit of work that will be carried out.
Protected Member Functions inherited from com.runehive.game.task.Task
void baseExecute ()
boolean canSchedule ()
 A function executed on registration.
void onCancel (boolean logout)
 A function executed on cancellation.
void onSchedule ()
 A function executed on registration.

Private Attributes

int tick

Additional Inherited Members

Package Functions inherited from com.runehive.game.task.Task
void onException (Exception e)
 A function executed on thrown exceptions.
void onLoop ()
 A function executed when iterated over.
final synchronized void process ()
synchronized void setRunning (boolean running)

Detailed Description

Definition at line 11 of file InfernoBoss.java.

Constructor & Destructor Documentation

◆ InfernoBoss()

com.runehive.content.activity.inferno.InfernoBoss.InfernoBoss ( )

Definition at line 15 of file InfernoBoss.java.

15 {
16 super(1);
17 this.tick = 0;
18 // TODO Auto-generated constructor stub
19 }

Member Function Documentation

◆ execute()

void com.runehive.content.activity.inferno.InfernoBoss.execute ( )
protected

A function representing the unit of work that will be carried out.

Reimplemented from com.runehive.game.task.Task.

Definition at line 78 of file InfernoBoss.java.

78 {
79 // TODO Auto-generated method stub
80
81 }

Referenced by spawnbosswave().

Here is the caller graph for this function:

◆ spawnbosswave()

void com.runehive.content.activity.inferno.InfernoBoss.spawnbosswave ( Player player)

Definition at line 21 of file InfernoBoss.java.

21 {
22
23 Npc mager = new Npc(7703, new Position(2264, 5351, 0));
24 Npc ranger = new Npc(7702, new Position(2271, 5350, 0));
25 Npc Jad = new Npc(7700, new Position(2269, 5345, 0));
26 Npc Healer = new Npc(7750, new Position(2276, 5363, 0));
27 Npc Healer1 = new Npc(7750, new Position(2280, 5363, 0));
28 Npc Healer2 = new Npc(7750, new Position(2266, 5363, 0));
29 Npc Healer3 = new Npc(7750, new Position(2262, 5363, 0));
30 Npc Glyph = new Npc(7707, new Position(2270, 5363, 0));
31 Npc TzKalZuk = new Npc(7706, new Position(2268, 5362, 0));
32
33 player.send(new SendMessage("@red@ Inferno Boss Wave has begun!"));
34 // World.sendMessage("@red@" + player.getName() + " has just Started the Inferno!!");
35 World.schedule(new Task(1) {
36
37 @Override
38 protected void execute() {
39 // when does the
40 // my code for it is broken aswell feelsbad
41 switch (tick) {
42 case 0:
43 Glyph.register();
44 Glyph.face(new Position(2271, 1));
45 break;
46 case 1:
47 TzKalZuk.register();
48 TzKalZuk.animate(new Animation(7563));
49 TzKalZuk.face(new Position(2271, 1));
50 break;
51 case 2:
52
53 Glyph.walkExactlyTo(new Position(2257, 5361, 0), () -> {
54 System.err.println("WALKING GLYPH TO SET POSITION!");
55 });
56
57 // for(int i = 0; i > Glyph.getCurrentHealth(); i++) {
58
59 // }
60 break;
61 case 3:
62 mager.register();
63 ranger.register();
64 if (Glyph.getCurrentHealth() <= 10) {
65 mager.attack(Glyph);
66 ranger.attack(Glyph);
67 } else {
68 mager.attack(player);
69 ranger.attack(player);
70 }
71 break;
72 }
73 tick++;
74 }
75 });
76 }

References com.runehive.game.world.entity.mob.Mob.animate(), com.runehive.game.world.entity.mob.Mob.attack(), execute(), com.runehive.game.world.entity.mob.Mob.face(), com.runehive.game.world.entity.mob.Mob.getCurrentHealth(), com.runehive.game.world.entity.mob.npc.Npc.register(), com.runehive.game.world.World.schedule(), com.runehive.game.world.entity.mob.player.Player.send(), com.runehive.game.task.Task.Task(), tick, and com.runehive.game.world.entity.mob.Mob.walkExactlyTo().

Here is the call graph for this function:

Member Data Documentation

◆ tick

int com.runehive.content.activity.inferno.InfernoBoss.tick
private

Definition at line 13 of file InfernoBoss.java.

Referenced by spawnbosswave().


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