mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-06 08:39:06 +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,37 @@
|
||||
package com.rebotted.game.players;
|
||||
|
||||
/**
|
||||
* Position
|
||||
* @author Andrew (I'm A Boss on Rune-Server, Mr Extremez on Moparscape & Runelocus)
|
||||
*/
|
||||
|
||||
public class Position {
|
||||
|
||||
public static boolean checkPosition(Player player, int x, int y, int h) {
|
||||
return player.absX == x && player.absY == y && player.heightLevel == h;
|
||||
}
|
||||
|
||||
public static boolean checkPlayerX(Player client, int x, int h) {
|
||||
return client.absX == x && client.heightLevel == h;
|
||||
}
|
||||
|
||||
public static boolean checkPlayerY(Player player, int y, int h) {
|
||||
return player.absY == y && player.heightLevel == h;
|
||||
}
|
||||
|
||||
public static boolean checkPlayerH(Player client, int h) {
|
||||
return client.heightLevel == h;
|
||||
}
|
||||
|
||||
public static boolean checkObject(Player client, int x, int y, int h) {
|
||||
return client.objectX == x && client.objectY == y && client.heightLevel == h;
|
||||
}
|
||||
|
||||
public static boolean checkObjectX(Player client, int x, int h) {
|
||||
return client.objectX == x && client.heightLevel == h;
|
||||
}
|
||||
|
||||
public static boolean checkObjectY(Player client, int y, int h) {
|
||||
return client.objectY == y && client.heightLevel == h;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user