RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.writer.InterfaceWriter Class Referenceabstract

Handles writing on an itemcontainer. More...

Inheritance diagram for com.runehive.content.writer.InterfaceWriter:
Collaboration diagram for com.runehive.content.writer.InterfaceWriter:

Public Member Functions

 InterfaceWriter (Player player)
void scroll ()

Static Public Member Functions

static void write (InterfaceWriter writer)

Protected Member Functions

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

Protected Attributes

Player player

Detailed Description

Handles writing on an itemcontainer.

Author
Daniel

Definition at line 14 of file InterfaceWriter.java.

Constructor & Destructor Documentation

◆ InterfaceWriter()

com.runehive.content.writer.InterfaceWriter.InterfaceWriter ( Player player)

Definition at line 16 of file InterfaceWriter.java.

16 {
17 this.player = player;
18 }

References player.

Referenced by write().

Here is the caller graph for this function:

Member Function Documentation

◆ color()

◆ font()

◆ scroll()

void com.runehive.content.writer.InterfaceWriter.scroll ( )

Reimplemented in com.runehive.content.writer.impl.InformationWriter.

Definition at line 30 of file InterfaceWriter.java.

30 {
31
32 }

◆ startingIndex()

◆ text()

◆ write()

void com.runehive.content.writer.InterfaceWriter.write ( InterfaceWriter writer)
static

Definition at line 34 of file InterfaceWriter.java.

34 {
35 writer.scroll();
36
37 /* Sends the text */
38 int line = writer.startingIndex();
39 if (writer.text() != null) {
40 for (int index = 0; index < writer.text().length; index++) {
41 writer.player.send(new SendString(writer.text()[index], line++));
42 }
43 }
44
45 /* Sends the color */
46 if (writer.color() != null) {
47 for (int index = 0; index < writer.color().length; index++) {
48 writer.player.send(new SendColor(writer.color()[index][0], writer.color()[index][1]));
49 }
50 }
51
52 /* Sends the font */
53 if (writer.font() != null) {
54 for (int index = 0; index < writer.font().length; index++) {
55 writer.player.send(new SendFont(writer.font()[index][0], writer.font()[index][1]));
56 }
57 }
58 }
val index

References InterfaceWriter().

Referenced by com.runehive.game.world.entity.mob.player.PlayerKilling.handle(), com.runehive.game.world.entity.mob.player.PlayerAssistant.initialize(), com.runehive.game.plugin.PluginContext.onClick(), com.runehive.content.Obelisks.open(), com.runehive.game.world.entity.mob.player.PlayerDeath.postDeath(), com.runehive.game.engine.GameEngine.runOneIteration(), and com.runehive.content.donators.Donation.updateRank().

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

Member Data Documentation

◆ player


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