mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-06 16:49:07 +00:00
Cleanup part 1 (#213)
* Clean up part 1 - Removed lots of dead code - Removed unncessary files not in use - Cleaned up small bits of code - Removed a few warnings - Server.java ---> GameEngine.java - Constants.java ---> GameConstants.java * Cape Dye Rewrote cape dying * Packaging - redone ----> com.rebotted * PacketSender/clean up - ActionSender ---> PacketSender - Moved many more packets to packetsender - Cleaned up more dead code * Merge Client/Player - Merged Client.java with Player.java (both were doing same thing so redundant to have both) - Removed some more dead code - Tidy a few small things up * Quests/more clean up - Removed more dead code - Made quests static in order to clean them up a bit * More cleanup - Removed some more of the dead quest code - Correcting naming of some of the shop variables
This commit is contained in:
committed by
Daniel Ginovker
parent
3d1ae1b288
commit
d876a923b9
@@ -0,0 +1,30 @@
|
||||
package com.rebotted.game.players;
|
||||
|
||||
import org.apache.mina.common.IoSession;
|
||||
|
||||
import com.rebotted.GameConstants;
|
||||
import com.rebotted.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