mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-06 00:32:01 +00:00
Rename & Repackage
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.rs2.game.players;
|
||||
|
||||
import org.apache.mina.common.IoSession;
|
||||
|
||||
import com.rs2.GameConstants;
|
||||
import com.rs2.util.Stream;
|
||||
|
||||
public class Client extends Player {
|
||||
|
||||
public Client(IoSession s, int _playerId) {
|
||||
super(_playerId);
|
||||
session = s;
|
||||
outStream = new Stream(new byte[GameConstants.BUFFER_SIZE]);
|
||||
outStream.currentOffset = 0;
|
||||
inStream = new Stream(new byte[GameConstants.BUFFER_SIZE]);
|
||||
inStream.currentOffset = 0;
|
||||
buffer = new byte[GameConstants.BUFFER_SIZE];
|
||||
}
|
||||
|
||||
//bots
|
||||
public Client(IoSession s) {
|
||||
super(-1);
|
||||
isBot = true;
|
||||
session = null;
|
||||
inStream = new Stream(new byte[GameConstants.BUFFER_SIZE]);
|
||||
inStream.currentOffset = 0;
|
||||
buffer = new byte[GameConstants.BUFFER_SIZE];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user