RuneHive-Game
Loading...
Searching...
No Matches
RequestType.java
Go to the documentation of this file.
1
package
com.runehive.game.world.entity.mob.player.requests;
2
3
/**
4
* Represents the different types of request.
5
*
6
* @author Graham Edgecombe
7
*/
8
public
enum
RequestType
{
9
10
/** A trade request. */
11
TRADE
(
"tradereq"
),
12
13
/** A duel request. */
14
DUEL
(
"duelreq"
);
15
16
/** The client-side name of the request. */
17
private
String
clientName
;
18
19
/**
20
* Creates a type of request.
21
*
22
* @param clientName
23
* The name of the request client-side.
24
*/
25
RequestType
(String
clientName
) {
26
this.clientName =
clientName
;
27
}
28
29
/**
30
* Gets the client name.
31
*
32
* @return The client name.
33
*/
34
public
String
getClientName
() {
35
return
clientName
;
36
}
37
}
com.runehive.game.world.entity.mob.player.requests.RequestType.RequestType
RequestType(String clientName)
Creates a type of request.
Definition
RequestType.java:25
com.runehive.game.world.entity.mob.player.requests.RequestType.TRADE
TRADE
A trade request.
Definition
RequestType.java:11
com.runehive.game.world.entity.mob.player.requests.RequestType.DUEL
DUEL
A duel request.
Definition
RequestType.java:14
com.runehive.game.world.entity.mob.player.requests.RequestType.getClientName
String getClientName()
Gets the client name.
Definition
RequestType.java:34
com.runehive.game.world.entity.mob.player.requests.RequestType.clientName
String clientName
The client-side name of the request.
Definition
RequestType.java:17