RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.net.codec.login.LoginResponsePacket Class Reference

An immutable message that is written through a channel and forwarded to the LoginResponseEncoder where it is encoded and sent to the client. More...

Collaboration diagram for com.runehive.net.codec.login.LoginResponsePacket:

Public Member Functions

LoginResponse getResponse ()
PlayerRight getRights ()
boolean isFlagged ()
 LoginResponsePacket (LoginResponse response)
 Creates a new LoginResponsePacket with an authority level of PLAYER and a flagged value of false.
 LoginResponsePacket (LoginResponse response, PlayerRight rights, boolean flagged)
 Creates a new LoginResponsePacket.

Private Attributes

final boolean flagged
 If the Player is flagged.
final LoginResponse response
 The actual login response.
final PlayerRight rights
 The Players authority level.

Detailed Description

An immutable message that is written through a channel and forwarded to the LoginResponseEncoder where it is encoded and sent to the client.

Author
lare96 http://github.org/lare96

Definition at line 11 of file LoginResponsePacket.java.

Constructor & Destructor Documentation

◆ LoginResponsePacket() [1/2]

com.runehive.net.codec.login.LoginResponsePacket.LoginResponsePacket ( LoginResponse response,
PlayerRight rights,
boolean flagged )

Creates a new LoginResponsePacket.

Parameters
responseThe actual login response.
rightsThe Players authority level.
flaggedIf the Player is flagged.

Definition at line 38 of file LoginResponsePacket.java.

38 {
39 this.response = response;
40 this.rights = rights;
41 this.flagged = flagged;
42 }

References flagged, response, and rights.

◆ LoginResponsePacket() [2/2]

com.runehive.net.codec.login.LoginResponsePacket.LoginResponsePacket ( LoginResponse response)

Creates a new LoginResponsePacket with an authority level of PLAYER and a flagged value of false.

Parameters
responseThe actual login response.

Definition at line 51 of file LoginResponsePacket.java.

51 {
52 this(response, PlayerRight.PLAYER, false);
53 }

References com.runehive.game.world.entity.mob.player.PlayerRight.PLAYER, and response.

Member Function Documentation

◆ getResponse()

LoginResponse com.runehive.net.codec.login.LoginResponsePacket.getResponse ( )
Returns
The actual login response.

Definition at line 58 of file LoginResponsePacket.java.

58 {
59 return response;
60 }

References response.

◆ getRights()

PlayerRight com.runehive.net.codec.login.LoginResponsePacket.getRights ( )
Returns
The Players authority level.

Definition at line 65 of file LoginResponsePacket.java.

65 {
66 return rights;
67 }

References rights.

◆ isFlagged()

boolean com.runehive.net.codec.login.LoginResponsePacket.isFlagged ( )
Returns
true if flagged

Definition at line 72 of file LoginResponsePacket.java.

72 {
73 return flagged;
74 }

References flagged.

Member Data Documentation

◆ flagged

final boolean com.runehive.net.codec.login.LoginResponsePacket.flagged
private

If the Player is flagged.

Definition at line 26 of file LoginResponsePacket.java.

Referenced by isFlagged(), and LoginResponsePacket().

◆ response

final LoginResponse com.runehive.net.codec.login.LoginResponsePacket.response
private

The actual login response.

Definition at line 16 of file LoginResponsePacket.java.

Referenced by getResponse(), LoginResponsePacket(), and LoginResponsePacket().

◆ rights

final PlayerRight com.runehive.net.codec.login.LoginResponsePacket.rights
private

The Players authority level.

Definition at line 21 of file LoginResponsePacket.java.

Referenced by getRights(), and LoginResponsePacket().


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