Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/rooms/RoomUserAction.java

32 lines
603 B
Java
Raw Normal View History

2018-07-06 15:30:00 +02:00
package com.eu.habbo.habbohotel.rooms;
2019-05-26 20:14:53 +02:00
public enum RoomUserAction {
2018-07-06 15:30:00 +02:00
NONE(0),
WAVE(1),
BLOW_KISS(2),
LAUGH(3),
UNKNOWN(4),
IDLE(5),
JUMP(6),
THUMB_UP(7);
private final int action;
2019-05-26 20:14:53 +02:00
RoomUserAction(int action) {
this.action = action;
2018-07-06 15:30:00 +02:00
}
2019-05-26 20:14:53 +02:00
public static RoomUserAction fromValue(int value) {
for (RoomUserAction action : RoomUserAction.values()) {
if (action.getAction() == value) {
2018-07-06 15:30:00 +02:00
return action;
}
}
return NONE;
}
2019-05-26 20:14:53 +02:00
public int getAction() {
return this.action;
}
2018-07-06 15:30:00 +02:00
}