use of org.apollo.game.message.impl.NpcActionMessage in project apollo by apollo-rsps.
the class FifthNpcActionMessageDecoder method decode.
@Override
public NpcActionMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int index = (int) reader.getUnsigned(DataType.SHORT, DataOrder.LITTLE);
return new NpcActionMessage(5, index);
}
use of org.apollo.game.message.impl.NpcActionMessage in project apollo by apollo-rsps.
the class FirstNpcActionMessageDecoder method decode.
@Override
public NpcActionMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int index = (int) reader.getSigned(DataType.SHORT, DataOrder.LITTLE);
return new NpcActionMessage(1, index);
}
use of org.apollo.game.message.impl.NpcActionMessage in project apollo by apollo-rsps.
the class FourthNpcActionMessageDecoder method decode.
@Override
public NpcActionMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int index = (int) reader.getUnsigned(DataType.SHORT);
return new NpcActionMessage(4, index);
}
use of org.apollo.game.message.impl.NpcActionMessage in project apollo by apollo-rsps.
the class SecondNpcActionMessageDecoder method decode.
@Override
public NpcActionMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int index = (int) reader.getSigned(DataType.SHORT, DataTransformation.ADD);
return new NpcActionMessage(2, index);
}
use of org.apollo.game.message.impl.NpcActionMessage in project apollo by apollo-rsps.
the class ThirdNpcActionMessageDecoder method decode.
@Override
public NpcActionMessage decode(GamePacket packet) {
GamePacketReader reader = new GamePacketReader(packet);
int index = (int) reader.getSigned(DataType.SHORT, DataOrder.LITTLE, DataTransformation.ADD);
return new NpcActionMessage(3, index);
}
Aggregations