mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-06 08:39:06 +00:00
d876a923b9
* 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
38 lines
1.1 KiB
Java
38 lines
1.1 KiB
Java
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;
|
|
}
|
|
}
|