RuneHive-Game
Loading...
Searching...
No Matches
LoginResponse.java
Go to the documentation of this file.
1package com.runehive.net.codec.login;
2
3/**
4 * Represents the enumerated login response codes.
5 *
6 * @author SeVen
7 */
8public enum LoginResponse {
37
38 /**
39 * The response code.
40 */
41 private final int opcode;
42
43 /**
44 * Creates a new {@code LoginResponse}.
45 *
46 * @param opcode
47 * The response code.
48 */
50 this.opcode = opcode;
51 }
52
53 /**
54 * Gets the opcode for this response.
55 *
56 * @return The response code.
57 */
58 public final int getOpcode() {
59 return opcode;
60 }
61}
62
LoginResponse(int opcode)
Creates a new LoginResponse.
final int getOpcode()
Gets the opcode for this response.