mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-19 16:57:20 +07:00
Refactored changed time to delta where appropriate
This commit is contained in:
parent
1426b87534
commit
e07e6bd2ba
@ -19,7 +19,7 @@ public abstract class MessageChannel implements ReliablePacketController.PacketL
|
||||
}
|
||||
|
||||
public abstract void reset();
|
||||
public abstract void update(long time, DatagramChannel ch);
|
||||
public abstract void update(long delta, DatagramChannel ch);
|
||||
public abstract void sendMessage(int channelId, DatagramChannel ch, ByteBuf bb);
|
||||
public abstract void onMessageReceived(ChannelHandlerContext ctx, DatagramPacket packet);
|
||||
|
||||
|
@ -53,8 +53,8 @@ public class ReliableEndpoint implements MessageChannel.PacketTransceiver {
|
||||
for (MessageChannel mc : channels) if (mc != null) mc.reset();
|
||||
}
|
||||
|
||||
public void update(long time) {
|
||||
for (MessageChannel mc : channels) if (mc != null) mc.update(time, channel);
|
||||
public void update(long delta) {
|
||||
for (MessageChannel mc : channels) if (mc != null) mc.update(delta, channel);
|
||||
}
|
||||
|
||||
public void sendMessage(QoS qos, ByteBuffer bb) {
|
||||
|
@ -46,7 +46,7 @@ public class ReliablePacketController {
|
||||
|
||||
}
|
||||
|
||||
public void update(long time) {
|
||||
public void update(long delta) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ public class ReliableMessageChannel extends MessageChannel {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(long time, DatagramChannel ch) {
|
||||
public void update(long delta, DatagramChannel ch) {
|
||||
|
||||
}
|
||||
|
||||
|
@ -36,8 +36,8 @@ public class UnreliableMessageChannel extends MessageChannel {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(long time, DatagramChannel ch) {
|
||||
packetController.update(time);
|
||||
public void update(long delta, DatagramChannel ch) {
|
||||
packetController.update(delta);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -31,8 +31,8 @@ public class UnreliableOrderedMessageChannel extends MessageChannel {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(long time, DatagramChannel ch) {
|
||||
packetController.update(time);
|
||||
public void update(long delta, DatagramChannel ch) {
|
||||
packetController.update(delta);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user