RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.activity.panel.Activity_Panel Class Referenceabstract
Inheritance diagram for com.runehive.content.activity.panel.Activity_Panel:
Collaboration diagram for com.runehive.content.activity.panel.Activity_Panel:

Public Member Functions

void close ()
String getFooter ()
String getHeader ()
Item getItem ()
Player getPlayer ()
int getProgress ()
String[] getText ()
void open ()
void setFooter (String footer)
void setItem (Item item)
void setProgress (int progress)

Protected Member Functions

 Activity_Panel (Player player, String header)
void set (int index, String string)

Private Attributes

String footer = ""
final String header
Item item
final Player player
int progress
final String[] text = new String[7]

Detailed Description

Definition at line 8 of file Activity_Panel.java.

Constructor & Destructor Documentation

◆ Activity_Panel()

com.runehive.content.activity.panel.Activity_Panel.Activity_Panel ( Player player,
String header )
protected

Definition at line 16 of file Activity_Panel.java.

16 {
17 this.player = player;
18 this.header = header;
19 }

References header, and player.

Member Function Documentation

◆ close()

void com.runehive.content.activity.panel.Activity_Panel.close ( )

Definition at line 34 of file Activity_Panel.java.

34 {
35 player.send(new SendForceTab(Config.INVENTORY_TAB));
36 player.interfaceManager.setSidebar(Config.ACTIVITY_TAB, -1);
37 }

References com.runehive.Config.ACTIVITY_TAB, com.runehive.Config.INVENTORY_TAB, and player.

Referenced by com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlNode.finish().

Here is the caller graph for this function:

◆ getFooter()

String com.runehive.content.activity.panel.Activity_Panel.getFooter ( )

Definition at line 75 of file Activity_Panel.java.

75 {
76 return footer;
77 }

References footer.

◆ getHeader()

String com.runehive.content.activity.panel.Activity_Panel.getHeader ( )

Definition at line 71 of file Activity_Panel.java.

71 {
72 return header;
73 }

References header.

◆ getItem()

Item com.runehive.content.activity.panel.Activity_Panel.getItem ( )

Definition at line 67 of file Activity_Panel.java.

67 {
68 return item;
69 }

References item.

◆ getPlayer()

Player com.runehive.content.activity.panel.Activity_Panel.getPlayer ( )

Definition at line 59 of file Activity_Panel.java.

59 {
60 return player;
61 }

References player.

◆ getProgress()

int com.runehive.content.activity.panel.Activity_Panel.getProgress ( )

Definition at line 63 of file Activity_Panel.java.

63 {
64 return progress;
65 }

References progress.

◆ getText()

String[] com.runehive.content.activity.panel.Activity_Panel.getText ( )

Definition at line 79 of file Activity_Panel.java.

79 {
80 return text;
81 }

References text.

◆ open()

void com.runehive.content.activity.panel.Activity_Panel.open ( )

Definition at line 21 of file Activity_Panel.java.

21 {
22 player.send(new SendString(header, 38003));
23 player.send(new SendString(footer, 38004));
24
25 for (int index = 0; index <= 6; index++)
26 set(index, "");
27
28 if (!player.interfaceManager.isSidebar(Config.ACTIVITY_TAB,38000))
29 player.send(new SendForceTab(Config.ACTIVITY_TAB));
30
31 player.interfaceManager.setSidebar(Config.ACTIVITY_TAB, 38000);
32 }
val index

References com.runehive.Config.ACTIVITY_TAB, footer, header, and player.

◆ set()

void com.runehive.content.activity.panel.Activity_Panel.set ( int index,
String string )
protected

Definition at line 39 of file Activity_Panel.java.

39 {
40 if (!string.equals(text[index]))
41 player.send(new SendString(text[index] = string, 38005 + index));
42 }

References player, and text.

◆ setFooter()

void com.runehive.content.activity.panel.Activity_Panel.setFooter ( String footer)

Definition at line 44 of file Activity_Panel.java.

44 {
45 if (!footer.equals(this.footer))
46 player.send(new SendString(this.footer = footer, 38004));
47 }

References footer, and player.

Referenced by com.runehive.content.activity.impl.duelarena.DuelArenaActivity.DuelPanel.update(), and com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlPanel.update().

Here is the caller graph for this function:

◆ setItem()

void com.runehive.content.activity.panel.Activity_Panel.setItem ( Item item)

Definition at line 49 of file Activity_Panel.java.

49 {
50 if (!item.equals(this.item))
51 player.send(new SendItemOnInterface(38016, this.item = item));
52 }
boolean equals(Object obj)
Definition Item.java:475

References item, and player.

Referenced by com.runehive.content.activity.impl.duelarena.DuelArenaActivity.DuelPanel.update(), and com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlPanel.update().

Here is the caller graph for this function:

◆ setProgress()

void com.runehive.content.activity.panel.Activity_Panel.setProgress ( int progress)

Definition at line 54 of file Activity_Panel.java.

54 {
55 if (this.progress != progress)
56 player.send(new SendProgressBar(38015, this.progress = progress));
57 }

References player, and progress.

Referenced by com.runehive.content.activity.impl.duelarena.DuelArenaActivity.DuelPanel.update(), and com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlPanel.update().

Here is the caller graph for this function:

Member Data Documentation

◆ footer

String com.runehive.content.activity.panel.Activity_Panel.footer = ""
private

Definition at line 12 of file Activity_Panel.java.

Referenced by getFooter(), open(), and setFooter().

◆ header

final String com.runehive.content.activity.panel.Activity_Panel.header
private

Definition at line 10 of file Activity_Panel.java.

Referenced by Activity_Panel(), getHeader(), and open().

◆ item

Item com.runehive.content.activity.panel.Activity_Panel.item
private

Definition at line 13 of file Activity_Panel.java.

Referenced by getItem(), and setItem().

◆ player

final Player com.runehive.content.activity.panel.Activity_Panel.player
private

◆ progress

int com.runehive.content.activity.panel.Activity_Panel.progress
private

Definition at line 14 of file Activity_Panel.java.

Referenced by getProgress(), and setProgress().

◆ text

final String [] com.runehive.content.activity.panel.Activity_Panel.text = new String[7]
private

Definition at line 11 of file Activity_Panel.java.

Referenced by getText(), and set().


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