32 lines
603 B
Java
Raw Normal View History

2018-07-06 13:30:00 +00:00
package com.eu.habbo.habbohotel.rooms;
2019-05-26 21:14:53 +03:00
public enum RoomUserAction {
2018-07-06 13:30:00 +00: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 21:14:53 +03:00
RoomUserAction(int action) {
this.action = action;
2018-07-06 13:30:00 +00:00
}
2019-05-26 21:14:53 +03:00
public static RoomUserAction fromValue(int value) {
for (RoomUserAction action : RoomUserAction.values()) {
if (action.getAction() == value) {
2018-07-06 13:30:00 +00:00
return action;
}
}
return NONE;
}
2019-05-26 21:14:53 +03:00
public int getAction() {
return this.action;
}
2018-07-06 13:30:00 +00:00
}