use of org.apollo.game.message.impl.PlayerActionMessage in project apollo by apollo-rsps.
the class FifthPlayerActionMessageDecoder method decode.
@Override
public PlayerActionMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int index = (int) reader.getUnsigned(DataType.SHORT, DataOrder.LITTLE);
return new PlayerActionMessage(5, index);
}
use of org.apollo.game.message.impl.PlayerActionMessage in project apollo by apollo-rsps.
the class FourthPlayerActionMessageDecoder method decode.
@Override
public PlayerActionMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int index = (int) reader.getUnsigned(DataType.SHORT, DataOrder.LITTLE);
return new PlayerActionMessage(4, index);
}
use of org.apollo.game.message.impl.PlayerActionMessage in project apollo by apollo-rsps.
the class ThirdPlayerActionMessageDecoder method decode.
@Override
public PlayerActionMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int index = (int) reader.getUnsigned(DataType.SHORT, DataOrder.LITTLE);
return new PlayerActionMessage(3, index);
}
use of org.apollo.game.message.impl.PlayerActionMessage in project apollo by apollo-rsps.
the class FirstPlayerActionMessageDecoder method decode.
@Override
public PlayerActionMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int index = (int) reader.getUnsigned(DataType.SHORT, DataOrder.LITTLE, DataTransformation.ADD);
return new PlayerActionMessage(1, index);
}
use of org.apollo.game.message.impl.PlayerActionMessage in project apollo by apollo-rsps.
the class FourthPlayerActionMessageDecoder method decode.
@Override
public PlayerActionMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int index = (int) reader.getUnsigned(DataType.SHORT, DataOrder.LITTLE);
return new PlayerActionMessage(4, index);
}
Aggregations