RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.writer.impl.InformationWriter Class Reference

Class handles writing on the quest tab itemcontainer. More...

Inheritance diagram for com.runehive.content.writer.impl.InformationWriter:
Collaboration diagram for com.runehive.content.writer.impl.InformationWriter:

Public Member Functions

 InformationWriter (Player player)
void scroll ()
Public Member Functions inherited from com.runehive.content.writer.InterfaceWriter
 InterfaceWriter (Player player)

Protected Member Functions

int[][] color ()
int[][] font ()
int startingIndex ()
String[] text ()

Private Attributes

int[][] font
String[] text

Additional Inherited Members

Static Public Member Functions inherited from com.runehive.content.writer.InterfaceWriter
static void write (InterfaceWriter writer)
Protected Attributes inherited from com.runehive.content.writer.InterfaceWriter
Player player

Detailed Description

Class handles writing on the quest tab itemcontainer.

Author
Daniel

Definition at line 18 of file InformationWriter.java.

Constructor & Destructor Documentation

◆ InformationWriter()

com.runehive.content.writer.impl.InformationWriter.InformationWriter ( Player player)

Definition at line 20 of file InformationWriter.java.

20 {
21 super(player);
22 }

References com.runehive.content.writer.InterfaceWriter.player.

Member Function Documentation

◆ color()

int[][] com.runehive.content.writer.impl.InformationWriter.color ( )
protected

Reimplemented from com.runehive.content.writer.InterfaceWriter.

Definition at line 82 of file InformationWriter.java.

82 {
83 return null;
84 }

◆ font()

int[][] com.runehive.content.writer.impl.InformationWriter.font ( )
protected

Reimplemented from com.runehive.content.writer.InterfaceWriter.

Definition at line 87 of file InformationWriter.java.

87 {
88 return font;
89 }

References font.

◆ scroll()

void com.runehive.content.writer.impl.InformationWriter.scroll ( )

Reimplemented from com.runehive.content.writer.InterfaceWriter.

Definition at line 72 of file InformationWriter.java.

72 {
73 player.send(new SendScrollbar(29450, 475));
74 }

References com.runehive.content.writer.InterfaceWriter.player.

◆ startingIndex()

int com.runehive.content.writer.impl.InformationWriter.startingIndex ( )
protected

Reimplemented from com.runehive.content.writer.InterfaceWriter.

Definition at line 67 of file InformationWriter.java.

67 {
68 return 29451;
69 }

◆ text()

String[] com.runehive.content.writer.impl.InformationWriter.text ( )
protected

Reimplemented from com.runehive.content.writer.InterfaceWriter.

Definition at line 77 of file InformationWriter.java.

77 {
78 return text;
79 }

References text.

Member Data Documentation

◆ font

int [][] com.runehive.content.writer.impl.InformationWriter.font
private
Initial value:
= {
{29451, 3},
{29455, 3},
{29459, 3},
{29463, 3},
{29472, 3}
}

Definition at line 56 of file InformationWriter.java.

56 {
57 {29451, 3},
58 {29455, 3},
59 {29459, 3},
60 {29463, 3},
61 {29472, 3}
62
63
64 };

Referenced by font().

◆ text

String [] com.runehive.content.writer.impl.InformationWriter.text
private

Definition at line 24 of file InformationWriter.java.

24 {
25 " <col=FF7000>Game Information:",
26 " -Players online: <col=FFB83F>" + World.getPlayerCount(),
27 " -Staff online: <col=FFB83F>" + World.getStaffCount(),
28 " -Uptime: <col=FFB83F>" + Utility.getUptime(),
29 " <col=FF7000>Events:",
30 " -Skotizo: <col=FFB83F>" + SkotizoUtility.getInformation(),
31 " -Blood Chest: <col=FFB83F>" + BloodMoneyChest.getInformation(),
32 " -Well of Goodwill: <col=FFB83F>" + WellOfGoodwill.getInformation(),
33 " <col=FF7000>Player Information:",
34 " -Rank: <col=FFB83F>" + PlayerRight.getCrown(player) + " " + player.right.getName(),
35 " -Play time: <col=FFB83F>" + Utility.getTime(player.playTime),
36 " -Networth: <col=FFB83F>" + Utility.formatPrice(player.playerAssistant.networth()) + " " + (Utility.formatPrice(player.playerAssistant.networth()).endsWith("!") ? "" : "GP"),
37 " <col=FF7000>Player Statistics:",
38 " -Kills: <col=FFB83F>" + player.kill,
39 " -Deaths: <col=FFB83F> " + player.death,
40 " -KDR: <col=FFB83F>" + player.playerAssistant.kdr(),
41 " -Killstreak: <col=FFB83F>" + player.killstreak.streak,
42 " -Donator Credits: <col=FFB83F>" + Utility.formatDigits(player.donation.getCredits()),
43 " -Vote Points: <col=FFB83F>" + Utility.formatDigits(player.votePoints),
44 " -Skilling Points: <col=FFB83F>" + Utility.formatDigits(player.skillingPoints),
45 " -Trivia Answered: <col=FFB83F>" + Utility.formatDigits(player.answeredTrivias),
46 " <col=FF7000>Slayer Information:",
47 " -Slayer Points: <col=FFB83F>" + Utility.formatDigits(player.slayer.getPoints()),
48 " -Slayer Task: <col=FFB83F>" + (player.slayer.getTask() == null ? "None" : player.slayer.getTask().getName()),
49 " -Task Remaining: <col=FFB83F>" + Utility.formatDigits(player.slayer.getAmount()),
50
51
52
53
54 };

Referenced by text().


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