Advertisement
Guest User

Untitled

a guest
Sep 15th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.75 KB | None | 0 0
  1. package com.arlania.world.entity.impl.player;
  2.  
  3. import com.arlania.GameSettings;
  4. import com.arlania.engine.task.Task;
  5. import com.arlania.engine.task.TaskManager;
  6. import com.arlania.engine.task.impl.PlayerDeathTask;
  7. import com.arlania.engine.task.impl.WalkToTask;
  8. import com.arlania.model.*;
  9. import com.arlania.model.container.impl.*;
  10. import com.arlania.model.container.impl.Bank.BankSearchAttributes;
  11. import com.arlania.model.definitions.WeaponAnimations;
  12. import com.arlania.model.definitions.WeaponInterfaces;
  13. import com.arlania.model.definitions.WeaponInterfaces.WeaponInterface;
  14. import com.arlania.model.input.Input;
  15. import com.arlania.net.PlayerSession;
  16. import com.arlania.net.SessionState;
  17. import com.arlania.net.packet.Packet;
  18. import com.arlania.net.packet.PacketSender;
  19. import com.arlania.util.FrameUpdater;
  20. import com.arlania.util.Stopwatch;
  21. import com.arlania.world.World;
  22. import com.arlania.world.content.*;
  23. import com.arlania.world.content.Achievements.AchievementAttributes;
  24. import com.arlania.world.content.BankPin.BankPinAttributes;
  25. import com.arlania.world.content.DropLog.DropLogEntry;
  26. import com.arlania.world.content.KillsTracker.KillsEntry;
  27. import com.arlania.world.content.LoyaltyProgramme.LoyaltyTitles;
  28. import com.arlania.world.content.StartScreen.GameModes;
  29. import com.arlania.world.content.clan.ClanChat;
  30. import com.arlania.world.content.combat.CombatFactory;
  31. import com.arlania.world.content.combat.CombatType;
  32. import com.arlania.world.content.combat.effect.CombatPoisonEffect.CombatPoisonData;
  33. import com.arlania.world.content.combat.magic.CombatSpell;
  34. import com.arlania.world.content.combat.magic.CombatSpells;
  35. import com.arlania.world.content.combat.prayer.CurseHandler;
  36. import com.arlania.world.content.combat.prayer.PrayerHandler;
  37. import com.arlania.world.content.combat.pvp.PlayerKillingAttributes;
  38. import com.arlania.world.content.combat.range.CombatRangedAmmo.RangedWeaponData;
  39. import com.arlania.world.content.combat.strategy.CombatStrategies;
  40. import com.arlania.world.content.combat.strategy.CombatStrategy;
  41. import com.arlania.world.content.combat.weapon.CombatSpecial;
  42. import com.arlania.world.content.combat.weapon.FightType;
  43. import com.arlania.world.content.dialogue.Dialogue;
  44. import com.arlania.world.content.grandexchange.GrandExchangeSlot;
  45. import com.arlania.world.content.minigames.Minigame;
  46. import com.arlania.world.content.minigames.MinigameAttributes;
  47. import com.arlania.world.content.minigames.impl.Dueling;
  48. import com.arlania.world.content.pos.PlayerOwnedShopManager;
  49. import com.arlania.world.content.skill.SkillManager;
  50. import com.arlania.world.content.skill.impl.construction.HouseFurniture;
  51. import com.arlania.world.content.skill.impl.construction.Portal;
  52. import com.arlania.world.content.skill.impl.construction.Room;
  53. import com.arlania.world.content.skill.impl.construction.ConstructionData.HouseLocation;
  54. import com.arlania.world.content.skill.impl.construction.ConstructionData.HouseTheme;
  55. import com.arlania.world.content.skill.impl.farming.Farming;
  56. import com.arlania.world.content.skill.impl.slayer.Slayer;
  57. import com.arlania.world.content.skill.impl.summoning.Pouch;
  58. import com.arlania.world.content.skill.impl.summoning.Summoning;
  59. import com.arlania.world.content.zulrah.Zulrah;
  60. import com.arlania.world.entity.impl.Character;
  61. import com.arlania.world.entity.impl.npc.NPC;
  62. import com.sun.security.ntlm.Client;
  63.  
  64. import java.io.BufferedReader;
  65. import java.io.IOException;
  66. import java.io.InputStreamReader;
  67. import java.net.URL;
  68. import java.util.*;
  69. import java.util.concurrent.CopyOnWriteArrayList;
  70.  
  71. //k ur good u sure? yh go test the connection
  72.  
  73. public class Player extends Character {
  74.  
  75.  
  76. public long npcDropTableDelay;
  77.  
  78. private static final PlayerOwnedShopManager PlayerOwnedShopmanager = null;
  79.  
  80. private int[] maxCapeColors = { 65214, 65200, 65186, 62995 };
  81.  
  82. public int[] getMaxCapeColors() {
  83. return maxCapeColors;
  84. }
  85.  
  86. public void setMaxCapeColors(int[] maxCapeColors) {
  87. this.maxCapeColors = maxCapeColors;
  88. }
  89.  
  90. private String title = "";
  91.  
  92. private boolean active;
  93.  
  94. private boolean shopUpdated;
  95.  
  96. public Player(PlayerSession playerIO) {
  97. super(GameSettings.DEFAULT_POSITION.copy());
  98. this.session = playerIO;
  99. }
  100.  
  101. private Map<String, Object> attributes = new HashMap<>();
  102.  
  103. @SuppressWarnings("unchecked")
  104. public <T> T getAttribute(String key) {
  105. return (T) attributes.get(key);
  106. }
  107.  
  108. private Minigame minigame = null;
  109.  
  110. @SuppressWarnings("unchecked")
  111. public <T> T getAttribute(String key, T fail) {
  112. Object object = attributes.get(key);
  113. return object == null ? fail : (T) object;
  114. }
  115.  
  116. public boolean hasAttribute(String key) {
  117. return attributes.containsKey(key);
  118. }
  119.  
  120. public void removeAttribute(String key) {
  121. attributes.remove(key);
  122. }
  123.  
  124. private int hardwareNumber;
  125.  
  126. public int getHardwareNumber() {
  127. return hardwareNumber;
  128. }
  129.  
  130. public Player setHardwareNumber(int hardwareNumber) {
  131. this.hardwareNumber = hardwareNumber;
  132. return this;
  133. }
  134.  
  135. public void setAttribute(String key, Object value) {
  136. attributes.put(key, value);
  137. }
  138.  
  139. @Override
  140. public void appendDeath() {
  141. if (!isDying) {
  142. isDying = true;
  143. TaskManager.submit(new PlayerDeathTask(this));
  144. }
  145. }
  146.  
  147. private int bossPoints;
  148.  
  149. public int getBossPoints() {
  150. return bossPoints;
  151. }
  152.  
  153. public void setBossPoints(int bossPoints) {
  154. this.bossPoints = bossPoints;
  155. }
  156.  
  157. /*
  158. * Variables for DropTable & Player Profiling
  159. *
  160. * @author Levi Patton
  161. *
  162. * @www.rune-server.org/members/auguryps
  163. */
  164. public Player dropLogPlayer;
  165. public boolean dropLogOrder;
  166. private PlayerDropLog playerDropLog = new PlayerDropLog();
  167. private ProfileViewing profile = new ProfileViewing();
  168. private LootingBag lootingBag = new LootingBag(this);
  169.  
  170. /*
  171. * Variables for the DropLog
  172. *
  173. * @author Levi Patton
  174. */
  175. public PacketSender getPA() {
  176. return getPacketSender();
  177. }
  178.  
  179. public PlayerDropLog getPlayerDropLog() {
  180. return playerDropLog;
  181. }
  182.  
  183. public ProfileViewing getProfile() {
  184. return profile;
  185. }
  186.  
  187. public void setProfile(ProfileViewing profile) {
  188. this.profile = profile;
  189. }
  190.  
  191. public void setPlayerDropLog(PlayerDropLog playerDropLog) {
  192. this.playerDropLog = playerDropLog;
  193. }
  194.  
  195. @Override
  196. public int getConstitution() {
  197. return getSkillManager().getCurrentLevel(Skill.CONSTITUTION);
  198. }
  199.  
  200. @Override
  201. public Character setConstitution(int constitution) {
  202. if (isDying) {
  203. return this;
  204. }
  205. skillManager.setCurrentLevel(Skill.CONSTITUTION, constitution);
  206. packetSender.sendSkill(Skill.CONSTITUTION);
  207. if (getConstitution() <= 0 && !isDying) {
  208. appendDeath();
  209. }
  210. return this;
  211. }
  212.  
  213. @Override
  214. public void heal(int amount) {
  215. int level = skillManager.getMaxLevel(Skill.CONSTITUTION);
  216. if ((skillManager.getCurrentLevel(Skill.CONSTITUTION) + amount) >= level) {
  217. setConstitution(level);
  218. } else {
  219. setConstitution(skillManager.getCurrentLevel(Skill.CONSTITUTION) + amount);
  220. }
  221. }
  222.  
  223. @Override
  224. public int getBaseAttack(CombatType type) {
  225. if (type == CombatType.RANGED) {
  226. return skillManager.getCurrentLevel(Skill.RANGED);
  227. } else if (type == CombatType.MAGIC) {
  228. return skillManager.getCurrentLevel(Skill.MAGIC);
  229. }
  230. return skillManager.getCurrentLevel(Skill.ATTACK);
  231. }
  232.  
  233. @Override
  234. public int getBaseDefence(CombatType type) {
  235. if (type == CombatType.MAGIC) {
  236. return skillManager.getCurrentLevel(Skill.MAGIC);
  237. }
  238. return skillManager.getCurrentLevel(Skill.DEFENCE);
  239. }
  240.  
  241. @Override
  242. public int getAttackSpeed() {
  243. int speed = weapon.getSpeed();
  244. String weapon = equipment.get(Equipment.WEAPON_SLOT).getDefinition().getName();
  245. if (getCurrentlyCasting() != null) {
  246. if (getCurrentlyCasting() == CombatSpells.BLOOD_BLITZ.getSpell()
  247. || getCurrentlyCasting() == CombatSpells.SHADOW_BLITZ.getSpell()
  248. || getCurrentlyCasting() == CombatSpells.SMOKE_BLITZ.getSpell()
  249. || getCurrentlyCasting() == CombatSpells.ICE_BLITZ.getSpell()) {
  250. return 5;
  251. } else {
  252. return 6;
  253. }
  254. }
  255. /*
  256. * if (weapon.toLowerCase().contains("scimitar")){ return 4; }
  257. */
  258. int weaponId = equipment.get(Equipment.WEAPON_SLOT).getId();
  259. if (weaponId == 1419) {
  260. speed -= 2;
  261. }
  262. if (fightType == FightType.CROSSBOW_RAPID || fightType == FightType.LONGBOW_RAPID
  263. || weaponId == 6522 && fightType == FightType.KNIFE_RAPID || weapon.contains("rapier")) {
  264. if (weaponId != 11235) {
  265. speed--;
  266. }
  267.  
  268. } else if (weaponId != 6522 && weaponId != 15241
  269. && (fightType == FightType.SHORTBOW_RAPID || fightType == FightType.DART_RAPID
  270. || fightType == FightType.KNIFE_RAPID || fightType == FightType.THROWNAXE_RAPID
  271. || fightType == FightType.JAVELIN_RAPID)
  272. || weaponId == 11730) {
  273. speed -= 2;
  274. }
  275. return speed;
  276. // return DesolaceFormulas.getAttackDelay(this);
  277. }
  278.  
  279. public int clue1Amount;
  280. public int clue2Amount;
  281. public int clue3Amount;
  282. public int clueLevel;
  283. public Item[] puzzleStoredItems;
  284. public int sextantGlobalPiece;
  285. public double sextantBarDegree;
  286. public int rotationFactor;
  287. public int sextantLandScapeCoords;
  288. public int sextantSunCoords;
  289.  
  290. // private Channel channel;
  291.  
  292. // public Player write(Packet packet) {
  293. // if (channel.isConnected()) {
  294. // channel.write(packet);
  295. // }
  296. // return this;
  297. // }
  298.  
  299. /// public Channel getChannel() {
  300. // return channel;
  301. // }
  302.  
  303. private Bank bank = new Bank(this);
  304.  
  305. public Bank getBank() {
  306. return bank;
  307. }
  308.  
  309. @Override
  310. public boolean isPlayer() {
  311. return true;
  312. }
  313.  
  314. @Override
  315. public boolean equals(Object o) {
  316. if (!(o instanceof Player)) {
  317. return false;
  318. }
  319.  
  320. Player p = (Player) o;
  321. return p.getIndex() == getIndex() || p.getUsername().equals(username);
  322. }
  323.  
  324. @Override
  325. public int getSize() {
  326. return 1;
  327. }
  328.  
  329. @Override
  330. public void poisonVictim(Character victim, CombatType type) {
  331. if (type == CombatType.MELEE || weapon == WeaponInterface.DART || weapon == WeaponInterface.KNIFE
  332. || weapon == WeaponInterface.THROWNAXE || weapon == WeaponInterface.JAVELIN) {
  333. CombatFactory.poisonEntity(victim, CombatPoisonData.getPoisonType(equipment.get(Equipment.WEAPON_SLOT)));
  334. } else if (type == CombatType.RANGED) {
  335. CombatFactory.poisonEntity(victim,
  336. CombatPoisonData.getPoisonType(equipment.get(Equipment.AMMUNITION_SLOT)));
  337. }
  338. }
  339.  
  340. @Override
  341. public CombatStrategy determineStrategy() {
  342. if (specialActivated && castSpell == null) {
  343.  
  344. if (combatSpecial.getCombatType() == CombatType.MELEE) {
  345. return CombatStrategies.getDefaultMeleeStrategy();
  346. } else if (combatSpecial.getCombatType() == CombatType.RANGED) {
  347. setRangedWeaponData(RangedWeaponData.getData(this));
  348. return CombatStrategies.getDefaultRangedStrategy();
  349. } else if (combatSpecial.getCombatType() == CombatType.MAGIC) {
  350. return CombatStrategies.getDefaultMagicStrategy();
  351. }
  352. }
  353.  
  354. if (castSpell != null || autocastSpell != null) {
  355. return CombatStrategies.getDefaultMagicStrategy();
  356. }
  357.  
  358. RangedWeaponData data = RangedWeaponData.getData(this);
  359. if (data != null) {
  360. setRangedWeaponData(data);
  361. return CombatStrategies.getDefaultRangedStrategy();
  362. }
  363.  
  364. return CombatStrategies.getDefaultMeleeStrategy();
  365. }
  366.  
  367. public void process() {
  368. process.sequence();
  369. }
  370.  
  371. public void dispose() {
  372. save();
  373. packetSender.sendLogout();
  374. }
  375.  
  376. public void save() {
  377. if (session.getState() != SessionState.LOGGED_IN && session.getState() != SessionState.LOGGING_OUT) {
  378. return;
  379. }
  380. PlayerSaving.save(this);
  381. }
  382.  
  383. public boolean logout() {
  384. if (getCombatBuilder().isBeingAttacked()) {
  385. getPacketSender().sendMessage("You must wait a few seconds after being out of combat before doing this.");
  386. return false;
  387. }
  388. if (getConstitution() <= 0 || isDying || settingUpCannon || crossingObstacle) {
  389. getPacketSender().sendMessage("You cannot log out at the moment.");
  390. return false;
  391. }
  392. return true;
  393. }
  394.  
  395. public final ArrayList<String> onlineAdmins = new ArrayList<String>();
  396. public final ArrayList<String> onlineMods = new ArrayList<String>();
  397. public final ArrayList<String> onlineOwners = new ArrayList<String>();
  398. public final ArrayList<String> onlineDevelopers = new ArrayList<String>();
  399. public final ArrayList<String> onlineServerSupport = new ArrayList<String>();
  400.  
  401. public void getOnlineStaff() {
  402. onlineAdmins.clear();
  403. onlineMods.clear();
  404. onlineOwners.clear();
  405. onlineDevelopers.clear();
  406. onlineServerSupport.clear();
  407. for (Player p : World.getPlayers()) {
  408. if (p != null) {
  409. Player staff = (Player) p;
  410. if (staff.getRights() == PlayerRights.MODERATOR && staff.getSession().getState() == SessionState.LOGGED_IN) {
  411. onlineMods.add(staff.username);
  412. }
  413. if (staff.getRights() == PlayerRights.DEVELOPER && staff.getSession().getState() == SessionState.LOGGED_IN) {
  414. onlineDevelopers.add(staff.username);
  415. }
  416. if (staff.getRights() == PlayerRights.OWNER && staff.getSession().getState() == SessionState.LOGGED_IN) {
  417. onlineOwners.add(staff.username);
  418. }
  419. if (staff.getRights() == PlayerRights.SUPPORT && staff.getSession().getState() == SessionState.LOGGED_IN) {
  420. onlineServerSupport.add(staff.username);
  421. }
  422. }
  423. }
  424. }
  425. public void restart() {
  426. setFreezeDelay(0);
  427. setOverloadPotionTimer(0);
  428. setPrayerRenewalPotionTimer(0);
  429. setSpecialPercentage(100);
  430. setSpecialActivated(false);
  431. CombatSpecial.updateBar(this);
  432. setHasVengeance(false);
  433. setSkullTimer(0);
  434. setSkullIcon(0);
  435. setTeleblockTimer(0);
  436. setPoisonDamage(0);
  437. setStaffOfLightEffect(0);
  438. performAnimation(new Animation(65535));
  439. WeaponInterfaces.assign(this, getEquipment().get(Equipment.WEAPON_SLOT));
  440. WeaponAnimations.assign(this, getEquipment().get(Equipment.WEAPON_SLOT));
  441. PrayerHandler.deactivateAll(this);
  442. CurseHandler.deactivateAll(this);
  443. getEquipment().refreshItems();
  444. getInventory().refreshItems();
  445. for (Skill skill : Skill.values()) {
  446. getSkillManager().setCurrentLevel(skill, getSkillManager().getMaxLevel(skill));
  447. }
  448. setRunEnergy(100);
  449. setDying(false);
  450. getMovementQueue().setLockMovement(false).reset();
  451. getUpdateFlag().flag(Flag.APPEARANCE);
  452. }
  453.  
  454. // finish that 03/09/2017 15062-15073 ids, get code to add DonatorPoints()
  455. public void gpay(Client c, Player username) {
  456. try {
  457. username = username.replaceAll(" ", "_");
  458. String secret = "3570c880a774dc56616659f9f09be08c"; // YOUR SECRET
  459. // KEY!
  460. URL url = new URL("http://app.gpay.io/api/runescape/" + username + "/" + secret);
  461. BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));
  462. String results = reader.readLine();
  463. if (results.toLowerCase().contains("!error:")) {
  464. // Logger.log(this, "[GPAY]"+results);
  465. } else {
  466. String[] ary = results.split(",");
  467. for (int i = 0; i < ary.length; i++) {
  468. switch (ary[i]) {
  469. case "0":
  470. // donation was not found tell the user that!
  471. break;
  472. case "15062": // product ids can be found on the webstore
  473. // page
  474. username.getPointsHandler().incrementDonationPoints(5);
  475. break;
  476. case "15063": // product ids can be found on the webstore
  477. // page
  478. username.getPointsHandler().incrementDonationPoints(10);
  479. break;
  480. case "15064": // product ids can be found on the webstore
  481. // page
  482. username.getPointsHandler().incrementDonationPoints(15);
  483. break;
  484. case "15065": // product ids can be found on the webstore
  485. // page
  486. username.getPointsHandler().incrementDonationPoints(20);
  487. break;
  488. case "15066": // product ids can be found on the webstore
  489. // page
  490. username.getPointsHandler().incrementDonationPoints(25);
  491. break;
  492. case "15067": // product ids can be found on the webstore
  493. // page
  494. username.getPointsHandler().incrementDonationPoints(30);
  495. break;
  496. case "15068": // product ids can be found on the webstore
  497. // page
  498. username.getPointsHandler().incrementDonationPoints(35);
  499. break;
  500. case "15069": // product ids can be found on the webstore
  501. // page
  502. username.getPointsHandler().incrementDonationPoints(40);
  503. break;
  504. case "15070": // product ids can be found on the webstore
  505. // page
  506. username.getPointsHandler().incrementDonationPoints(45);
  507. break;
  508. case "15071": // product ids can be found on the webstore
  509. // page
  510. username.getPointsHandler().incrementDonationPoints(50);
  511. break;
  512. case "15073": // product ids can be found on the webstore
  513. // page
  514. username.getPointsHandler().incrementDonationPoints(100);
  515. break;
  516.  
  517. }
  518. }
  519. }
  520. } catch (IOException e) {
  521. }
  522. }
  523.  
  524. private Player replaceAll(String string, String string2) {
  525. // TODO Auto-generated method stub
  526. return null;
  527. }
  528.  
  529. public boolean busy() {
  530. return interfaceId > 0 || isBanking || shopping || trading.inTrade() || dueling.inDuelScreen || isResting;
  531. }
  532.  
  533. /*
  534. * Fields
  535. */
  536. /**
  537. * * STRINGS **
  538. */
  539. private String username;
  540. private String password;
  541. private String serial_number;
  542. private String emailAddress;
  543. private String hostAddress;
  544. private String clanChatName;
  545.  
  546. private HouseLocation houseLocation;
  547.  
  548. private HouseTheme houseTheme;
  549.  
  550. /**
  551. * * LONGS *
  552. */
  553. private Long longUsername;
  554. private long moneyInPouch;
  555. private long totalPlayTime;
  556. // Timers (Stopwatches)
  557. private final Stopwatch sqlTimer = new Stopwatch();
  558. private final Stopwatch foodTimer = new Stopwatch();
  559. private final Stopwatch potionTimer = new Stopwatch();
  560. private final Stopwatch lastRunRecovery = new Stopwatch();
  561. private final Stopwatch clickDelay = new Stopwatch();
  562. private final Stopwatch lastItemPickup = new Stopwatch();
  563. private final Stopwatch lastYell = new Stopwatch();
  564. private final Stopwatch lastZulrah = new Stopwatch();
  565. private final Stopwatch lastSql = new Stopwatch();
  566.  
  567. private final Stopwatch lastVengeance = new Stopwatch();
  568. private final Stopwatch emoteDelay = new Stopwatch();
  569. private final Stopwatch specialRestoreTimer = new Stopwatch();
  570. private final Stopwatch lastSummon = new Stopwatch();
  571. private final Stopwatch recordedLogin = new Stopwatch();
  572. private final Stopwatch creationDate = new Stopwatch();
  573. private final Stopwatch tolerance = new Stopwatch();
  574. private final Stopwatch lougoutTimer = new Stopwatch();
  575.  
  576. /**
  577. * * INSTANCES **
  578. */
  579. private final CopyOnWriteArrayList<KillsEntry> killsTracker = new CopyOnWriteArrayList<KillsEntry>();
  580. private final CopyOnWriteArrayList<DropLogEntry> dropLog = new CopyOnWriteArrayList<DropLogEntry>();
  581. private ArrayList<HouseFurniture> houseFurniture = new ArrayList<HouseFurniture>();
  582. private ArrayList<Portal> housePortals = new ArrayList<>();
  583. private final List<Player> localPlayers = new LinkedList<Player>();
  584. private final List<NPC> localNpcs = new LinkedList<NPC>();
  585. private final List<String> playerShopList = new ArrayList<>();
  586.  
  587. private PlayerSession session;
  588. private final PlayerProcess process = new PlayerProcess(this);
  589. private final PlayerKillingAttributes playerKillingAttributes = new PlayerKillingAttributes(this);
  590. private final MinigameAttributes minigameAttributes = new MinigameAttributes();
  591. private final BankPinAttributes bankPinAttributes = new BankPinAttributes();
  592. private final BankSearchAttributes bankSearchAttributes = new BankSearchAttributes();
  593. private final AchievementAttributes achievementAttributes = new AchievementAttributes();
  594. private CharacterAnimations characterAnimations = new CharacterAnimations();
  595. private final BonusManager bonusManager = new BonusManager();
  596. private final PointsHandler pointsHandler = new PointsHandler(this);
  597.  
  598. private final PacketSender packetSender = new PacketSender(this);
  599. private final Appearance appearance = new Appearance(this);
  600. private final FrameUpdater frameUpdater = new FrameUpdater();
  601. private PlayerRights rights = PlayerRights.PLAYER;
  602. private SkillManager skillManager = new SkillManager(this);
  603. private PlayerRelations relations = new PlayerRelations(this);
  604. private ChatMessage chatMessages = new ChatMessage();
  605. private Inventory inventory = new Inventory(this);
  606. private Equipment equipment = new Equipment(this);
  607. private PriceChecker priceChecker = new PriceChecker(this);
  608. private Trading trading = new Trading(this);
  609. private Dueling dueling = new Dueling(this);
  610. private Slayer slayer = new Slayer(this);
  611.  
  612. private Farming farming = new Farming(this);
  613. private Summoning summoning = new Summoning(this);
  614. private Bank[] bankTabs = new Bank[9];
  615. private Room[][][] houseRooms = new Room[5][13][13];
  616. private PlayerInteractingOption playerInteractingOption = PlayerInteractingOption.NONE;
  617. private GameMode gameMode = GameMode.NORMAL;
  618. private CombatType lastCombatType = CombatType.MELEE;
  619. private FightType fightType = FightType.UNARMED_PUNCH;
  620. private Prayerbook prayerbook = Prayerbook.NORMAL;
  621. private MagicSpellbook spellbook = MagicSpellbook.NORMAL;
  622. private LoyaltyTitles loyaltyTitle = LoyaltyTitles.NONE;
  623.  
  624. private ClanChat currentClanChat;
  625. private Input inputHandling;
  626. private WalkToTask walkToTask;
  627. private Shop shop;
  628. private GameObject interactingObject;
  629. private Item interactingItem;
  630. private Dialogue dialogue;
  631. private DwarfCannon cannon;
  632. private CombatSpell autocastSpell, castSpell, previousCastSpell;
  633. private RangedWeaponData rangedWeaponData;
  634. private CombatSpecial combatSpecial;
  635. private WeaponInterface weapon;
  636. private Item untradeableDropItem;
  637. private Object[] usableObject;
  638. private GrandExchangeSlot[] grandExchangeSlots = new GrandExchangeSlot[6];
  639. private Task currentTask;
  640. private Position resetPosition;
  641. private Pouch selectedPouch;
  642. private BlowpipeLoading blowpipeLoading = new BlowpipeLoading(this);
  643.  
  644. /**
  645. * * INTS **
  646. */
  647. public int destination = 0;
  648. public int lastClickedTab = 0;
  649.  
  650. private int[] brawlerCharges = new int[9];
  651. private int[] forceMovement = new int[7];
  652. private int[] leechedBonuses = new int[7];
  653. private int[] ores = new int[2];
  654. private int[] constructionCoords;
  655. private int recoilCharges;
  656. private int runEnergy = 100;
  657. private int currentBankTab;
  658. private int interfaceId, walkableInterfaceId, multiIcon;
  659. private int dialogueActionId;
  660. private int overloadPotionTimer, prayerRenewalPotionTimer;
  661. private int fireImmunity, fireDamageModifier;
  662. private int amountDonated;
  663. private int wildernessLevel;
  664. private int fireAmmo;
  665. private int specialPercentage = 100;
  666. private int skullIcon = -1, skullTimer;
  667. private int teleblockTimer;
  668. private int dragonFireImmunity;
  669. private int poisonImmunity;
  670. private int shadowState;
  671. private int effigy;
  672. private int dfsCharges;
  673. private int playerViewingIndex;
  674. private int staffOfLightEffect;
  675. private int minutesBonusExp = -1;
  676. private int selectedGeSlot = -1;
  677. private int selectedGeItem = -1;
  678. private int geQuantity;
  679. private int gePricePerItem;
  680. private int selectedSkillingItem;
  681. private int currentBookPage;
  682. private int storedRuneEssence, storedPureEssence;
  683. private int trapsLaid;
  684. private int skillAnimation;
  685. private int houseServant;
  686. private int houseServantCharges;
  687. private int servantItemFetch;
  688. private int portalSelected;
  689. private int constructionInterface;
  690. private int buildFurnitureId;
  691. private int buildFurnitureX;
  692. private int buildFurnitureY;
  693. private int combatRingType;
  694.  
  695. /**
  696. * * BOOLEANS **
  697. */
  698. private boolean unlockedLoyaltyTitles[] = new boolean[12];
  699. private boolean[] crossedObstacles = new boolean[7];
  700. private boolean processFarming;
  701. private boolean crossingObstacle;
  702. private boolean targeted;
  703. private boolean isBanking, noteWithdrawal, swapMode;
  704. private boolean regionChange, allowRegionChangePacket;
  705. private boolean isDying;
  706. private boolean isRunning = true, isResting;
  707. private boolean experienceLocked;
  708. private boolean clientExitTaskActive;
  709. private boolean drainingPrayer;
  710. private boolean shopping;
  711. private boolean settingUpCannon;
  712. private boolean hasVengeance;
  713. private boolean killsTrackerOpen;
  714. private boolean acceptingAid;
  715. private boolean autoRetaliate;
  716. private boolean autocast;
  717. private boolean specialActivated;
  718. private boolean isCoughing;
  719. private boolean playerLocked;
  720. private boolean recoveringSpecialAttack;
  721. private boolean soundsActive, musicActive;
  722. private boolean newPlayer;
  723. private boolean openBank;
  724. private boolean inActive;
  725. public int timeOnline;
  726. private boolean inConstructionDungeon;
  727. private boolean isBuildingMode;
  728. private boolean voteMessageSent;
  729. private boolean receivedStarter;
  730. private boolean playerShopSearchExact = false;
  731.  
  732. /*
  733. * Getters & Setters
  734. */
  735. public PlayerSession getSession() {
  736. return session;
  737. }
  738.  
  739. public Inventory getInventory() {
  740. return inventory;
  741. }
  742.  
  743. public Equipment getEquipment() {
  744. return equipment;
  745. }
  746.  
  747. public PriceChecker getPriceChecker() {
  748. return priceChecker;
  749. }
  750.  
  751. /*
  752. * Getters and setters
  753. */
  754. public String getUsername() {
  755. return username;
  756. }
  757.  
  758. public Player setUsername(String username) {
  759. this.username = username;
  760. return this;
  761. }
  762.  
  763. public Long getLongUsername() {
  764. return longUsername;
  765. }
  766.  
  767. public Player setLongUsername(Long longUsername) {
  768. this.longUsername = longUsername;
  769. return this;
  770. }
  771.  
  772. public String getPassword() {
  773. return password;
  774. }
  775.  
  776. public String getEmailAddress() {
  777. return this.emailAddress;
  778. }
  779.  
  780. public void setEmailAddress(String address) {
  781. this.emailAddress = address;
  782. }
  783.  
  784. public Player setPassword(String password) {
  785. this.password = password;
  786. return this;
  787. }
  788.  
  789. public String getHostAddress() {
  790. return hostAddress;
  791. }
  792.  
  793. public Player setHostAddress(String hostAddress) {
  794. this.hostAddress = hostAddress;
  795. return this;
  796. }
  797.  
  798. public String getSerialNumber() {
  799. return serial_number;
  800. }
  801.  
  802. public Player setSerialNumber(String serial_number) {
  803. this.serial_number = serial_number;
  804. return this;
  805. }
  806.  
  807. public FrameUpdater getFrameUpdater() {
  808. return this.frameUpdater;
  809. }
  810.  
  811. public PlayerRights getRights() {
  812. return rights;
  813. }
  814.  
  815. public Player setRights(PlayerRights rights) {
  816. this.rights = rights;
  817. return this;
  818. }
  819.  
  820. public ChatMessage getChatMessages() {
  821. return chatMessages;
  822. }
  823.  
  824. public PacketSender getPacketSender() {
  825. return packetSender;
  826. }
  827.  
  828. public SkillManager getSkillManager() {
  829. return skillManager;
  830. }
  831.  
  832. public Appearance getAppearance() {
  833. return appearance;
  834. }
  835.  
  836. public PlayerRelations getRelations() {
  837. return relations;
  838. }
  839.  
  840. public PlayerKillingAttributes getPlayerKillingAttributes() {
  841. return playerKillingAttributes;
  842. }
  843.  
  844. public PointsHandler getPointsHandler() {
  845. return pointsHandler;
  846. }
  847.  
  848. public boolean isImmuneToDragonFire() {
  849. return dragonFireImmunity > 0;
  850. }
  851.  
  852. public int getDragonFireImmunity() {
  853. return dragonFireImmunity;
  854. }
  855.  
  856. public void setDragonFireImmunity(int dragonFireImmunity) {
  857. this.dragonFireImmunity = dragonFireImmunity;
  858. }
  859.  
  860. public void incrementDragonFireImmunity(int amount) {
  861. dragonFireImmunity += amount;
  862. }
  863.  
  864. public void decrementDragonFireImmunity(int amount) {
  865. dragonFireImmunity -= amount;
  866. }
  867.  
  868. public int getPoisonImmunity() {
  869. return poisonImmunity;
  870. }
  871.  
  872. public void setPoisonImmunity(int poisonImmunity) {
  873. this.poisonImmunity = poisonImmunity;
  874. }
  875.  
  876. public void incrementPoisonImmunity(int amount) {
  877. poisonImmunity += amount;
  878. }
  879.  
  880. public void decrementPoisonImmunity(int amount) {
  881. poisonImmunity -= amount;
  882. }
  883.  
  884. public boolean isAutoRetaliate() {
  885. return autoRetaliate;
  886. }
  887.  
  888. public void setAutoRetaliate(boolean autoRetaliate) {
  889. this.autoRetaliate = autoRetaliate;
  890. }
  891.  
  892. /**
  893. * @return the castSpell
  894. */
  895. public CombatSpell getCastSpell() {
  896. return castSpell;
  897. }
  898.  
  899. /**
  900. * @param castSpell
  901. * the castSpell to set
  902. */
  903. public void setCastSpell(CombatSpell castSpell) {
  904. this.castSpell = castSpell;
  905. }
  906.  
  907. public CombatSpell getPreviousCastSpell() {
  908. return previousCastSpell;
  909. }
  910.  
  911. public void setPreviousCastSpell(CombatSpell previousCastSpell) {
  912. this.previousCastSpell = previousCastSpell;
  913. }
  914.  
  915. /**
  916. * @return the autocast
  917. */
  918. public boolean isAutocast() {
  919. return autocast;
  920. }
  921.  
  922. /**
  923. * @param autocast
  924. * the autocast to set
  925. */
  926. public void setAutocast(boolean autocast) {
  927. this.autocast = autocast;
  928. }
  929.  
  930. /**
  931. * @return the skullTimer
  932. */
  933. public int getSkullTimer() {
  934. return skullTimer;
  935. }
  936.  
  937. /**
  938. * @param skullTimer
  939. * the skullTimer to set
  940. */
  941. public void setSkullTimer(int skullTimer) {
  942. this.skullTimer = skullTimer;
  943. }
  944.  
  945. public void decrementSkullTimer() {
  946. skullTimer -= 50;
  947. }
  948.  
  949. /**
  950. * @return the skullIcon
  951. */
  952. public int getSkullIcon() {
  953. return skullIcon;
  954. }
  955.  
  956. /**
  957. * @param skullIcon
  958. * the skullIcon to set
  959. */
  960. public void setSkullIcon(int skullIcon) {
  961. this.skullIcon = skullIcon;
  962. }
  963.  
  964. /**
  965. * @return the teleblockTimer
  966. */
  967. public int getTeleblockTimer() {
  968. return teleblockTimer;
  969. }
  970.  
  971. /**
  972. * @param teleblockTimer
  973. * the teleblockTimer to set
  974. */
  975. public void setTeleblockTimer(int teleblockTimer) {
  976. this.teleblockTimer = teleblockTimer;
  977. }
  978.  
  979. public void decrementTeleblockTimer() {
  980. teleblockTimer--;
  981. }
  982.  
  983. /**
  984. * @return the autocastSpell
  985. */
  986. public CombatSpell getAutocastSpell() {
  987. return autocastSpell;
  988. }
  989.  
  990. /**
  991. * @param autocastSpell
  992. * the autocastSpell to set
  993. */
  994. public void setAutocastSpell(CombatSpell autocastSpell) {
  995. this.autocastSpell = autocastSpell;
  996. }
  997.  
  998. /**
  999. * @return the specialPercentage
  1000. */
  1001. public int getSpecialPercentage() {
  1002. return specialPercentage;
  1003. }
  1004.  
  1005. /**
  1006. * @param specialPercentage
  1007. * the specialPercentage to set
  1008. */
  1009. public void setSpecialPercentage(int specialPercentage) {
  1010. this.specialPercentage = specialPercentage;
  1011. }
  1012.  
  1013. /**
  1014. * @return the fireAmmo
  1015. */
  1016. public int getFireAmmo() {
  1017. return fireAmmo;
  1018. }
  1019.  
  1020. /**
  1021. * @param fireAmmo
  1022. * the fireAmmo to set
  1023. */
  1024. public void setFireAmmo(int fireAmmo) {
  1025. this.fireAmmo = fireAmmo;
  1026. }
  1027.  
  1028. public int getWildernessLevel() {
  1029. return wildernessLevel;
  1030. }
  1031.  
  1032. public void setWildernessLevel(int wildernessLevel) {
  1033. this.wildernessLevel = wildernessLevel;
  1034. }
  1035.  
  1036. /**
  1037. * @return the combatSpecial
  1038. */
  1039. public CombatSpecial getCombatSpecial() {
  1040. return combatSpecial;
  1041. }
  1042.  
  1043. /**
  1044. * @param combatSpecial
  1045. * the combatSpecial to set
  1046. */
  1047. public void setCombatSpecial(CombatSpecial combatSpecial) {
  1048. this.combatSpecial = combatSpecial;
  1049. }
  1050.  
  1051. /**
  1052. * @return the specialActivated
  1053. */
  1054. public boolean isSpecialActivated() {
  1055. return specialActivated;
  1056. }
  1057.  
  1058. /**
  1059. * @param specialActivated
  1060. * the specialActivated to set
  1061. */
  1062. public void setSpecialActivated(boolean specialActivated) {
  1063. this.specialActivated = specialActivated;
  1064. }
  1065.  
  1066. public void decrementSpecialPercentage(int drainAmount) {
  1067. this.specialPercentage -= drainAmount;
  1068.  
  1069. if (specialPercentage < 0) {
  1070. specialPercentage = 0;
  1071. }
  1072. }
  1073.  
  1074. public void incrementSpecialPercentage(int gainAmount) {
  1075. this.specialPercentage += gainAmount;
  1076.  
  1077. if (specialPercentage > 100) {
  1078. specialPercentage = 100;
  1079. }
  1080. }
  1081.  
  1082. /**
  1083. * @return the rangedAmmo
  1084. */
  1085. public RangedWeaponData getRangedWeaponData() {
  1086. return rangedWeaponData;
  1087. }
  1088.  
  1089. /**
  1090. * @param rangedAmmo
  1091. * the rangedAmmo to set
  1092. */
  1093. public void setRangedWeaponData(RangedWeaponData rangedWeaponData) {
  1094. this.rangedWeaponData = rangedWeaponData;
  1095. }
  1096.  
  1097. /**
  1098. * @return the weapon.
  1099. */
  1100. public WeaponInterface getWeapon() {
  1101. return weapon;
  1102. }
  1103.  
  1104. public ArrayList<Integer> walkableInterfaceList = new ArrayList<>();
  1105. public long lastHelpRequest;
  1106. public long lastAuthClaimed;
  1107. public GameModes selectedGameMode;
  1108. private boolean areCloudsSpawned;
  1109.  
  1110. public boolean inFFA;
  1111. public boolean inFFALobby;
  1112. public int[] oldSkillLevels = new int[25];
  1113. public int[] oldSkillXP = new int[25];
  1114. public int[] oldSkillMaxLevels = new int[25];
  1115. // this file
  1116. public String viewingUser;
  1117.  
  1118. public void resetInterfaces() {
  1119. walkableInterfaceList.stream().filter((i) -> !(i == 41005 || i == 41000)).forEach((i) -> {
  1120. getPacketSender().sendWalkableInterface(i, false);
  1121. });
  1122.  
  1123. walkableInterfaceList.clear();
  1124. }
  1125.  
  1126. public void sendParallellInterfaceVisibility(int interfaceId, boolean visible) {
  1127. if (this != null && this.getPacketSender() != null) {
  1128. if (visible) {
  1129. if (walkableInterfaceList.contains(interfaceId)) {
  1130. return;
  1131. } else {
  1132. walkableInterfaceList.add(interfaceId);
  1133. }
  1134. } else {
  1135. if (!walkableInterfaceList.contains(interfaceId)) {
  1136. return;
  1137. } else {
  1138. walkableInterfaceList.remove((Object) interfaceId);
  1139. }
  1140. }
  1141.  
  1142. getPacketSender().sendWalkableInterface(interfaceId, visible);
  1143. }
  1144. }
  1145.  
  1146. /**
  1147. * @param weapon
  1148. * the weapon to set.
  1149. */
  1150. public void setWeapon(WeaponInterface weapon) {
  1151. this.weapon = weapon;
  1152. }
  1153.  
  1154. /**
  1155. * @return the fightType
  1156. */
  1157. public FightType getFightType() {
  1158. return fightType;
  1159. }
  1160.  
  1161. /**
  1162. * @param fightType
  1163. * the fightType to set
  1164. */
  1165. public void setFightType(FightType fightType) {
  1166. this.fightType = fightType;
  1167. }
  1168.  
  1169. public Bank[] getBanks() {
  1170. return bankTabs;
  1171. }
  1172.  
  1173. public Bank getBank(int index) {
  1174. return bankTabs[index];
  1175. }
  1176.  
  1177. public Player setBank(int index, Bank bank) {
  1178. this.bankTabs[index] = bank;
  1179. return this;
  1180. }
  1181.  
  1182. public boolean isAcceptAid() {
  1183. return acceptingAid;
  1184. }
  1185.  
  1186. public void setAcceptAid(boolean acceptingAid) {
  1187. this.acceptingAid = acceptingAid;
  1188. }
  1189.  
  1190. public Trading getTrading() {
  1191. return trading;
  1192. }
  1193.  
  1194. public Dueling getDueling() {
  1195. return dueling;
  1196. }
  1197.  
  1198. public CopyOnWriteArrayList<KillsEntry> getKillsTracker() {
  1199. return killsTracker;
  1200. }
  1201.  
  1202. public CopyOnWriteArrayList<DropLogEntry> getDropLog() {
  1203. return dropLog;
  1204. }
  1205.  
  1206. public void setWalkToTask(WalkToTask walkToTask) {
  1207. this.walkToTask = walkToTask;
  1208. }
  1209.  
  1210. public WalkToTask getWalkToTask() {
  1211. return walkToTask;
  1212. }
  1213.  
  1214. public Player setSpellbook(MagicSpellbook spellbook) {
  1215. this.spellbook = spellbook;
  1216. return this;
  1217. }
  1218.  
  1219. public MagicSpellbook getSpellbook() {
  1220. return spellbook;
  1221. }
  1222.  
  1223. public Player setPrayerbook(Prayerbook prayerbook) {
  1224. this.prayerbook = prayerbook;
  1225. return this;
  1226. }
  1227.  
  1228. public Prayerbook getPrayerbook() {
  1229. return prayerbook;
  1230. }
  1231.  
  1232. /**
  1233. * The player's local players list.
  1234. */
  1235. public List<Player> getLocalPlayers() {
  1236. return localPlayers;
  1237. }
  1238.  
  1239. /**
  1240. * The player's local npcs list getter
  1241. */
  1242. public List<NPC> getLocalNpcs() {
  1243. return localNpcs;
  1244. }
  1245.  
  1246. public Player setInterfaceId(int interfaceId) {
  1247. this.interfaceId = interfaceId;
  1248. return this;
  1249. }
  1250.  
  1251. public int getInterfaceId() {
  1252. return this.interfaceId;
  1253. }
  1254.  
  1255. public boolean isDying() {
  1256. return isDying;
  1257. }
  1258.  
  1259. public void setDying(boolean isDying) {
  1260. this.isDying = isDying;
  1261. }
  1262.  
  1263. public int[] getForceMovement() {
  1264. return forceMovement;
  1265. }
  1266.  
  1267. public Player setForceMovement(int[] forceMovement) {
  1268. this.forceMovement = forceMovement;
  1269. return this;
  1270. }
  1271.  
  1272. /**
  1273. * @return the equipmentAnimation
  1274. */
  1275. public CharacterAnimations getCharacterAnimations() {
  1276. return characterAnimations;
  1277. }
  1278.  
  1279. /**
  1280. * @return the equipmentAnimation
  1281. */
  1282. public void setCharacterAnimations(CharacterAnimations equipmentAnimation) {
  1283. this.characterAnimations = equipmentAnimation.clone();
  1284. }
  1285.  
  1286. public LoyaltyTitles getLoyaltyTitle() {
  1287. return loyaltyTitle;
  1288. }
  1289.  
  1290. public void setLoyaltyTitle(LoyaltyTitles loyaltyTitle) {
  1291. this.loyaltyTitle = loyaltyTitle;
  1292. }
  1293.  
  1294. public void setWalkableInterfaceId(int interfaceId2) {
  1295. this.walkableInterfaceId = interfaceId2;
  1296. }
  1297.  
  1298. public PlayerInteractingOption getPlayerInteractingOption() {
  1299. return playerInteractingOption;
  1300. }
  1301.  
  1302. public Player setPlayerInteractingOption(PlayerInteractingOption playerInteractingOption) {
  1303. this.playerInteractingOption = playerInteractingOption;
  1304. return this;
  1305. }
  1306.  
  1307. public int getMultiIcon() {
  1308. return multiIcon;
  1309. }
  1310.  
  1311. public Player setMultiIcon(int multiIcon) {
  1312. this.multiIcon = multiIcon;
  1313. return this;
  1314. }
  1315.  
  1316. public int getWalkableInterfaceId() {
  1317. return walkableInterfaceId;
  1318. }
  1319.  
  1320. public boolean soundsActive() {
  1321. return soundsActive;
  1322. }
  1323.  
  1324. public void setSoundsActive(boolean soundsActive) {
  1325. this.soundsActive = soundsActive;
  1326. }
  1327.  
  1328. public boolean musicActive() {
  1329. return musicActive;
  1330. }
  1331.  
  1332. public void setMusicActive(boolean musicActive) {
  1333. this.musicActive = musicActive;
  1334. }
  1335.  
  1336. public BonusManager getBonusManager() {
  1337. return bonusManager;
  1338. }
  1339.  
  1340. public int getRunEnergy() {
  1341. return runEnergy;
  1342. }
  1343.  
  1344. public Player setRunEnergy(int runEnergy) {
  1345. this.runEnergy = runEnergy;
  1346. return this;
  1347. }
  1348.  
  1349. public Stopwatch getLastRunRecovery() {
  1350. return lastRunRecovery;
  1351. }
  1352.  
  1353. public Player setRunning(boolean isRunning) {
  1354. this.isRunning = isRunning;
  1355. return this;
  1356. }
  1357.  
  1358. public boolean isRunning() {
  1359. return isRunning;
  1360. }
  1361.  
  1362. public Player setResting(boolean isResting) {
  1363. this.isResting = isResting;
  1364. return this;
  1365. }
  1366.  
  1367. public boolean isResting() {
  1368. return isResting;
  1369. }
  1370.  
  1371. public void setMoneyInPouch(long moneyInPouch) {
  1372. this.moneyInPouch = moneyInPouch;
  1373. }
  1374.  
  1375. public long getMoneyInPouch() {
  1376. return moneyInPouch;
  1377. }
  1378.  
  1379. public int getMoneyInPouchAsInt() {
  1380. return moneyInPouch > Integer.MAX_VALUE ? Integer.MAX_VALUE : (int) moneyInPouch;
  1381. }
  1382.  
  1383. public boolean experienceLocked() {
  1384. return experienceLocked;
  1385. }
  1386.  
  1387. public void setExperienceLocked(boolean experienceLocked) {
  1388. this.experienceLocked = experienceLocked;
  1389. }
  1390.  
  1391. public void setClientExitTaskActive(boolean clientExitTaskActive) {
  1392. this.clientExitTaskActive = clientExitTaskActive;
  1393. }
  1394.  
  1395. public boolean isClientExitTaskActive() {
  1396. return clientExitTaskActive;
  1397. }
  1398.  
  1399. public Player setCurrentClanChat(ClanChat clanChat) {
  1400. this.currentClanChat = clanChat;
  1401. return this;
  1402. }
  1403.  
  1404. public ClanChat getCurrentClanChat() {
  1405. return currentClanChat;
  1406. }
  1407.  
  1408. public String getClanChatName() {
  1409. return clanChatName;
  1410. }
  1411.  
  1412. public Player setClanChatName(String clanChatName) {
  1413. this.clanChatName = clanChatName;
  1414. return this;
  1415. }
  1416.  
  1417. public void setInputHandling(Input inputHandling) {
  1418. this.inputHandling = inputHandling;
  1419. }
  1420.  
  1421. public Input getInputHandling() {
  1422. return inputHandling;
  1423. }
  1424.  
  1425. public boolean isDrainingPrayer() {
  1426. return drainingPrayer;
  1427. }
  1428.  
  1429. public void setDrainingPrayer(boolean drainingPrayer) {
  1430. this.drainingPrayer = drainingPrayer;
  1431. }
  1432.  
  1433. public Stopwatch getClickDelay() {
  1434. return clickDelay;
  1435. }
  1436.  
  1437. public int[] getLeechedBonuses() {
  1438. return leechedBonuses;
  1439. }
  1440.  
  1441. public Stopwatch getLastItemPickup() {
  1442. return lastItemPickup;
  1443. }
  1444.  
  1445. public Stopwatch getLastSummon() {
  1446. return lastSummon;
  1447. }
  1448.  
  1449. public BankSearchAttributes getBankSearchingAttribtues() {
  1450. return bankSearchAttributes;
  1451. }
  1452.  
  1453. public AchievementAttributes getAchievementAttributes() {
  1454. return achievementAttributes;
  1455. }
  1456.  
  1457. public BankPinAttributes getBankPinAttributes() {
  1458. return bankPinAttributes;
  1459. }
  1460.  
  1461. public int getCurrentBankTab() {
  1462. return currentBankTab;
  1463. }
  1464.  
  1465. public Player setCurrentBankTab(int tab) {
  1466. this.currentBankTab = tab;
  1467. return this;
  1468. }
  1469.  
  1470. public boolean isBanking() {
  1471. return isBanking;
  1472. }
  1473.  
  1474. public Player setBanking(boolean isBanking) {
  1475. this.isBanking = isBanking;
  1476. return this;
  1477. }
  1478.  
  1479. public void setNoteWithdrawal(boolean noteWithdrawal) {
  1480. this.noteWithdrawal = noteWithdrawal;
  1481. }
  1482.  
  1483. public boolean withdrawAsNote() {
  1484. return noteWithdrawal;
  1485. }
  1486.  
  1487. public void setSwapMode(boolean swapMode) {
  1488. this.swapMode = swapMode;
  1489. }
  1490.  
  1491. public boolean swapMode() {
  1492. return swapMode;
  1493. }
  1494.  
  1495. public boolean isShopping() {
  1496. return shopping;
  1497. }
  1498.  
  1499. public void setShopping(boolean shopping) {
  1500. this.shopping = shopping;
  1501. }
  1502.  
  1503. public Shop getShop() {
  1504. return shop;
  1505. }
  1506.  
  1507. public Player setShop(Shop shop) {
  1508. this.shop = shop;
  1509. return this;
  1510. }
  1511.  
  1512. public GameObject getInteractingObject() {
  1513. return interactingObject;
  1514. }
  1515.  
  1516. public Player setInteractingObject(GameObject interactingObject) {
  1517. this.interactingObject = interactingObject;
  1518. return this;
  1519. }
  1520.  
  1521. public Item getInteractingItem() {
  1522. return interactingItem;
  1523. }
  1524.  
  1525. public void setInteractingItem(Item interactingItem) {
  1526. this.interactingItem = interactingItem;
  1527. }
  1528.  
  1529. public Dialogue getDialogue() {
  1530. return this.dialogue;
  1531. }
  1532.  
  1533. public void setDialogue(Dialogue dialogue) {
  1534. this.dialogue = dialogue;
  1535. }
  1536.  
  1537. public int getDialogueActionId() {
  1538. return dialogueActionId;
  1539. }
  1540.  
  1541. public void setDialogueActionId(int dialogueActionId) {
  1542. this.dialogueActionId = dialogueActionId;
  1543. }
  1544.  
  1545. public void setSettingUpCannon(boolean settingUpCannon) {
  1546. this.settingUpCannon = settingUpCannon;
  1547. }
  1548.  
  1549. public boolean isSettingUpCannon() {
  1550. return settingUpCannon;
  1551. }
  1552.  
  1553. public Player setCannon(DwarfCannon cannon) {
  1554. this.cannon = cannon;
  1555. return this;
  1556. }
  1557.  
  1558. public DwarfCannon getCannon() {
  1559. return cannon;
  1560. }
  1561.  
  1562. public int getOverloadPotionTimer() {
  1563. return overloadPotionTimer;
  1564. }
  1565.  
  1566. public void setOverloadPotionTimer(int overloadPotionTimer) {
  1567. this.overloadPotionTimer = overloadPotionTimer;
  1568. }
  1569.  
  1570. public int getPrayerRenewalPotionTimer() {
  1571. return prayerRenewalPotionTimer;
  1572. }
  1573.  
  1574. public void setPrayerRenewalPotionTimer(int prayerRenewalPotionTimer) {
  1575. this.prayerRenewalPotionTimer = prayerRenewalPotionTimer;
  1576. }
  1577.  
  1578. public Stopwatch getSpecialRestoreTimer() {
  1579. return specialRestoreTimer;
  1580. }
  1581.  
  1582. public boolean[] getUnlockedLoyaltyTitles() {
  1583. return unlockedLoyaltyTitles;
  1584. }
  1585.  
  1586. public void setUnlockedLoyaltyTitles(boolean[] unlockedLoyaltyTitles) {
  1587. this.unlockedLoyaltyTitles = unlockedLoyaltyTitles;
  1588. }
  1589.  
  1590. public void setUnlockedLoyaltyTitle(int index) {
  1591. unlockedLoyaltyTitles[index] = true;
  1592. }
  1593.  
  1594. public Stopwatch getEmoteDelay() {
  1595. return emoteDelay;
  1596. }
  1597.  
  1598. public MinigameAttributes getMinigameAttributes() {
  1599. return minigameAttributes;
  1600. }
  1601.  
  1602. public Minigame getMinigame() {
  1603. return minigame;
  1604. }
  1605.  
  1606. public void setMinigame(Minigame minigame) {
  1607. this.minigame = minigame;
  1608. }
  1609.  
  1610. public int getFireImmunity() {
  1611. return fireImmunity;
  1612. }
  1613.  
  1614. public Player setFireImmunity(int fireImmunity) {
  1615. this.fireImmunity = fireImmunity;
  1616. return this;
  1617. }
  1618.  
  1619. public int getFireDamageModifier() {
  1620. return fireDamageModifier;
  1621. }
  1622.  
  1623. public Player setFireDamageModifier(int fireDamageModifier) {
  1624. this.fireDamageModifier = fireDamageModifier;
  1625. return this;
  1626. }
  1627.  
  1628. public boolean hasVengeance() {
  1629. return hasVengeance;
  1630. }
  1631.  
  1632. public void setHasVengeance(boolean hasVengeance) {
  1633. this.hasVengeance = hasVengeance;
  1634. }
  1635.  
  1636. public Stopwatch getLastVengeance() {
  1637. return lastVengeance;
  1638. }
  1639.  
  1640. public void setHouseRooms(Room[][][] houseRooms) {
  1641. this.houseRooms = houseRooms;
  1642. }
  1643.  
  1644. public void setHousePortals(ArrayList<Portal> housePortals) {
  1645. this.housePortals = housePortals;
  1646. }
  1647.  
  1648. /*
  1649. * Construction instancing RuneZilla
  1650. */
  1651. public boolean isVisible() {
  1652. if (getLocation() == Locations.Location.CONSTRUCTION) {
  1653. return false;
  1654. }
  1655. return true;
  1656. }
  1657.  
  1658. public void setHouseFurtinture(ArrayList<HouseFurniture> houseFurniture) {
  1659. this.houseFurniture = houseFurniture;
  1660. }
  1661.  
  1662. public Stopwatch getTolerance() {
  1663. return tolerance;
  1664. }
  1665.  
  1666. public boolean isTargeted() {
  1667. return targeted;
  1668. }
  1669.  
  1670. public void setTargeted(boolean targeted) {
  1671. this.targeted = targeted;
  1672. }
  1673.  
  1674. public Stopwatch getLastYell() {
  1675. return lastYell;
  1676. }
  1677.  
  1678. public Stopwatch getLastZulrah() {
  1679. return lastZulrah;
  1680. }
  1681.  
  1682. public Stopwatch getLastSql() {
  1683. return lastSql;
  1684. }
  1685.  
  1686. public int getAmountDonated() {
  1687. return amountDonated;
  1688. }
  1689.  
  1690. public void incrementAmountDonated(int amountDonated) {
  1691. this.amountDonated += amountDonated;
  1692. }
  1693.  
  1694. public long getTotalPlayTime() {
  1695. return totalPlayTime;
  1696. }
  1697.  
  1698. public void setTotalPlayTime(long amount) {
  1699. this.totalPlayTime = amount;
  1700. }
  1701.  
  1702. public Stopwatch getRecordedLogin() {
  1703. return recordedLogin;
  1704. }
  1705.  
  1706. public Player setRegionChange(boolean regionChange) {
  1707. this.regionChange = regionChange;
  1708. return this;
  1709. }
  1710.  
  1711. public boolean isChangingRegion() {
  1712. return this.regionChange;
  1713. }
  1714.  
  1715. public void setAllowRegionChangePacket(boolean allowRegionChangePacket) {
  1716. this.allowRegionChangePacket = allowRegionChangePacket;
  1717. }
  1718.  
  1719. public boolean isAllowRegionChangePacket() {
  1720. return allowRegionChangePacket;
  1721. }
  1722.  
  1723. public boolean isKillsTrackerOpen() {
  1724. return killsTrackerOpen;
  1725. }
  1726.  
  1727. public void setKillsTrackerOpen(boolean killsTrackerOpen) {
  1728. this.killsTrackerOpen = killsTrackerOpen;
  1729. }
  1730.  
  1731. public boolean isCoughing() {
  1732. return isCoughing;
  1733. }
  1734.  
  1735. public void setCoughing(boolean isCoughing) {
  1736. this.isCoughing = isCoughing;
  1737. }
  1738.  
  1739. public int getShadowState() {
  1740. return shadowState;
  1741. }
  1742.  
  1743. public void setShadowState(int shadow) {
  1744. this.shadowState = shadow;
  1745. }
  1746.  
  1747. public GameMode getGameMode() {
  1748. return gameMode;
  1749. }
  1750.  
  1751. public void setGameMode(GameMode gameMode) {
  1752. this.gameMode = gameMode;
  1753. }
  1754.  
  1755. public boolean isPlayerLocked() {
  1756. return playerLocked;
  1757. }
  1758.  
  1759. public Player setPlayerLocked(boolean playerLocked) {
  1760. this.playerLocked = playerLocked;
  1761. return this;
  1762. }
  1763.  
  1764. public Stopwatch getSqlTimer() {
  1765. return sqlTimer;
  1766. }
  1767.  
  1768. public Stopwatch getFoodTimer() {
  1769. return foodTimer;
  1770. }
  1771.  
  1772. public Stopwatch getPotionTimer() {
  1773. return potionTimer;
  1774. }
  1775.  
  1776. public Item getUntradeableDropItem() {
  1777. return untradeableDropItem;
  1778. }
  1779.  
  1780. public void setUntradeableDropItem(Item untradeableDropItem) {
  1781. this.untradeableDropItem = untradeableDropItem;
  1782. }
  1783.  
  1784. public boolean isRecoveringSpecialAttack() {
  1785. return recoveringSpecialAttack;
  1786. }
  1787.  
  1788. public void setRecoveringSpecialAttack(boolean recoveringSpecialAttack) {
  1789. this.recoveringSpecialAttack = recoveringSpecialAttack;
  1790. }
  1791.  
  1792. public CombatType getLastCombatType() {
  1793. return lastCombatType;
  1794. }
  1795.  
  1796. public void setLastCombatType(CombatType lastCombatType) {
  1797. this.lastCombatType = lastCombatType;
  1798. }
  1799.  
  1800. public int getEffigy() {
  1801. return this.effigy;
  1802. }
  1803.  
  1804. public void setEffigy(int effigy) {
  1805. this.effigy = effigy;
  1806. }
  1807.  
  1808. public int getDfsCharges() {
  1809. return dfsCharges;
  1810. }
  1811.  
  1812. public void incrementDfsCharges(int amount) {
  1813. this.dfsCharges += amount;
  1814. }
  1815.  
  1816. public void setNewPlayer(boolean newPlayer) {
  1817. this.newPlayer = newPlayer;
  1818. }
  1819.  
  1820. public boolean newPlayer() {
  1821. return newPlayer;
  1822. }
  1823.  
  1824. public Stopwatch getLogoutTimer() {
  1825. return lougoutTimer;
  1826. }
  1827.  
  1828. public Player setUsableObject(Object[] usableObject) {
  1829. this.usableObject = usableObject;
  1830. return this;
  1831. }
  1832.  
  1833. public Player setUsableObject(int index, Object usableObject) {
  1834. this.usableObject[index] = usableObject;
  1835. return this;
  1836. }
  1837.  
  1838. public Object[] getUsableObject() {
  1839. return usableObject;
  1840. }
  1841.  
  1842. public int getPlayerViewingIndex() {
  1843. return playerViewingIndex;
  1844. }
  1845.  
  1846. public void setPlayerViewingIndex(int playerViewingIndex) {
  1847. this.playerViewingIndex = playerViewingIndex;
  1848. }
  1849.  
  1850. public boolean hasStaffOfLightEffect() {
  1851. return staffOfLightEffect > 0;
  1852. }
  1853.  
  1854. public int getStaffOfLightEffect() {
  1855. return staffOfLightEffect;
  1856. }
  1857.  
  1858. public void setStaffOfLightEffect(int staffOfLightEffect) {
  1859. this.staffOfLightEffect = staffOfLightEffect;
  1860. }
  1861.  
  1862. public void decrementStaffOfLightEffect() {
  1863. this.staffOfLightEffect--;
  1864. }
  1865.  
  1866. public boolean openBank() {
  1867. return openBank;
  1868. }
  1869.  
  1870. public void setOpenBank(boolean openBank) {
  1871. this.openBank = openBank;
  1872. }
  1873.  
  1874. public int getMinutesBonusExp() {
  1875. return minutesBonusExp;
  1876. }
  1877.  
  1878. public void setMinutesBonusExp(int minutesBonusExp, boolean add) {
  1879. this.minutesBonusExp = (add ? this.minutesBonusExp + minutesBonusExp : minutesBonusExp);
  1880. }
  1881.  
  1882. public void setInactive(boolean inActive) {
  1883. this.inActive = inActive;
  1884. }
  1885.  
  1886. public boolean isInActive() {
  1887. return inActive;
  1888. }
  1889.  
  1890. public int getSelectedGeItem() {
  1891. return selectedGeItem;
  1892. }
  1893.  
  1894. public void setSelectedGeItem(int selectedGeItem) {
  1895. this.selectedGeItem = selectedGeItem;
  1896. }
  1897.  
  1898. public int getGeQuantity() {
  1899. return geQuantity;
  1900. }
  1901.  
  1902. public void setGeQuantity(int geQuantity) {
  1903. this.geQuantity = geQuantity;
  1904. }
  1905.  
  1906. public int getGePricePerItem() {
  1907. return gePricePerItem;
  1908. }
  1909.  
  1910. public void setGePricePerItem(int gePricePerItem) {
  1911. this.gePricePerItem = gePricePerItem;
  1912. }
  1913.  
  1914. public GrandExchangeSlot[] getGrandExchangeSlots() {
  1915. return grandExchangeSlots;
  1916. }
  1917.  
  1918. public void setGrandExchangeSlots(GrandExchangeSlot[] GrandExchangeSlots) {
  1919. this.grandExchangeSlots = GrandExchangeSlots;
  1920. }
  1921.  
  1922. public void setGrandExchangeSlot(int index, GrandExchangeSlot state) {
  1923. this.grandExchangeSlots[index] = state;
  1924. }
  1925.  
  1926. public void setSelectedGeSlot(int slot) {
  1927. this.selectedGeSlot = slot;
  1928. }
  1929.  
  1930. public int getSelectedGeSlot() {
  1931. return selectedGeSlot;
  1932. }
  1933.  
  1934. public Task getCurrentTask() {
  1935. return currentTask;
  1936. }
  1937.  
  1938. public void setCurrentTask(Task currentTask) {
  1939. this.currentTask = currentTask;
  1940. }
  1941.  
  1942. public int getSelectedSkillingItem() {
  1943. return selectedSkillingItem;
  1944. }
  1945.  
  1946. public void setSelectedSkillingItem(int selectedItem) {
  1947. this.selectedSkillingItem = selectedItem;
  1948. }
  1949.  
  1950. public boolean shouldProcessFarming() {
  1951. return processFarming;
  1952. }
  1953.  
  1954. public void setProcessFarming(boolean processFarming) {
  1955. this.processFarming = processFarming;
  1956. }
  1957.  
  1958. public Pouch getSelectedPouch() {
  1959. return selectedPouch;
  1960. }
  1961.  
  1962. public void setSelectedPouch(Pouch selectedPouch) {
  1963. this.selectedPouch = selectedPouch;
  1964. }
  1965.  
  1966. public int getCurrentBookPage() {
  1967. return currentBookPage;
  1968. }
  1969.  
  1970. public void setCurrentBookPage(int currentBookPage) {
  1971. this.currentBookPage = currentBookPage;
  1972. }
  1973.  
  1974. public int getStoredRuneEssence() {
  1975. return storedRuneEssence;
  1976. }
  1977.  
  1978. public void setStoredRuneEssence(int storedRuneEssence) {
  1979. this.storedRuneEssence = storedRuneEssence;
  1980. }
  1981.  
  1982. public int getStoredPureEssence() {
  1983. return storedPureEssence;
  1984. }
  1985.  
  1986. public void setStoredPureEssence(int storedPureEssence) {
  1987. this.storedPureEssence = storedPureEssence;
  1988. }
  1989.  
  1990. public int getTrapsLaid() {
  1991. return trapsLaid;
  1992. }
  1993.  
  1994. public void setTrapsLaid(int trapsLaid) {
  1995. this.trapsLaid = trapsLaid;
  1996. }
  1997.  
  1998. public boolean isCrossingObstacle() {
  1999. return crossingObstacle;
  2000. }
  2001.  
  2002. public Player setCrossingObstacle(boolean crossingObstacle) {
  2003. this.crossingObstacle = crossingObstacle;
  2004. return this;
  2005. }
  2006.  
  2007. public boolean[] getCrossedObstacles() {
  2008. return crossedObstacles;
  2009. }
  2010.  
  2011. public boolean getCrossedObstacle(int i) {
  2012. return crossedObstacles[i];
  2013. }
  2014.  
  2015. public Player setCrossedObstacle(int i, boolean completed) {
  2016. crossedObstacles[i] = completed;
  2017. return this;
  2018. }
  2019.  
  2020. public void setCrossedObstacles(boolean[] crossedObstacles) {
  2021. this.crossedObstacles = crossedObstacles;
  2022. }
  2023.  
  2024. public int getSkillAnimation() {
  2025. return skillAnimation;
  2026. }
  2027.  
  2028. public Player setSkillAnimation(int animation) {
  2029. this.skillAnimation = animation;
  2030. return this;
  2031. }
  2032.  
  2033. public int[] getOres() {
  2034. return ores;
  2035. }
  2036.  
  2037. public void setOres(int[] ores) {
  2038. this.ores = ores;
  2039. }
  2040.  
  2041. public void setResetPosition(Position resetPosition) {
  2042. this.resetPosition = resetPosition;
  2043. }
  2044.  
  2045. public Position getResetPosition() {
  2046. return resetPosition;
  2047. }
  2048.  
  2049. public Slayer getSlayer() {
  2050. return slayer;
  2051. }
  2052.  
  2053. public Summoning getSummoning() {
  2054. return summoning;
  2055. }
  2056.  
  2057. public Farming getFarming() {
  2058. return farming;
  2059. }
  2060.  
  2061. public boolean inConstructionDungeon() {
  2062. return inConstructionDungeon;
  2063. }
  2064.  
  2065. public void setInConstructionDungeon(boolean inConstructionDungeon) {
  2066. this.inConstructionDungeon = inConstructionDungeon;
  2067. }
  2068.  
  2069. public int getHouseServant() {
  2070. return houseServant;
  2071. }
  2072.  
  2073. public HouseLocation getHouseLocation() {
  2074. return houseLocation;
  2075. }
  2076.  
  2077. public HouseTheme getHouseTheme() {
  2078. return houseTheme;
  2079. }
  2080.  
  2081. public void setHouseTheme(HouseTheme houseTheme) {
  2082. this.houseTheme = houseTheme;
  2083. }
  2084.  
  2085. public void setHouseLocation(HouseLocation houseLocation) {
  2086. this.houseLocation = houseLocation;
  2087. }
  2088.  
  2089. public void setHouseServant(int houseServant) {
  2090. this.houseServant = houseServant;
  2091. }
  2092.  
  2093. public int getHouseServantCharges() {
  2094. return this.houseServantCharges;
  2095. }
  2096.  
  2097. public void setHouseServantCharges(int houseServantCharges) {
  2098. this.houseServantCharges = houseServantCharges;
  2099. }
  2100.  
  2101. public void incrementHouseServantCharges() {
  2102. this.houseServantCharges++;
  2103. }
  2104.  
  2105. public int getServantItemFetch() {
  2106. return servantItemFetch;
  2107. }
  2108.  
  2109. public void setServantItemFetch(int servantItemFetch) {
  2110. this.servantItemFetch = servantItemFetch;
  2111. }
  2112.  
  2113. public int getPortalSelected() {
  2114. return portalSelected;
  2115. }
  2116.  
  2117. public void setPortalSelected(int portalSelected) {
  2118. this.portalSelected = portalSelected;
  2119. }
  2120.  
  2121. public boolean isBuildingMode() {
  2122. return this.isBuildingMode;
  2123. }
  2124.  
  2125. public void setIsBuildingMode(boolean isBuildingMode) {
  2126. this.isBuildingMode = isBuildingMode;
  2127. }
  2128.  
  2129. public int[] getConstructionCoords() {
  2130. return constructionCoords;
  2131. }
  2132.  
  2133. public void setConstructionCoords(int[] constructionCoords) {
  2134. this.constructionCoords = constructionCoords;
  2135. }
  2136.  
  2137. public int getBuildFurnitureId() {
  2138. return this.buildFurnitureId;
  2139. }
  2140.  
  2141. public void setBuildFuritureId(int buildFuritureId) {
  2142. this.buildFurnitureId = buildFuritureId;
  2143. }
  2144.  
  2145. public int getBuildFurnitureX() {
  2146. return this.buildFurnitureX;
  2147. }
  2148.  
  2149. public void setBuildFurnitureX(int buildFurnitureX) {
  2150. this.buildFurnitureX = buildFurnitureX;
  2151. }
  2152.  
  2153. public int getBuildFurnitureY() {
  2154. return this.buildFurnitureY;
  2155. }
  2156.  
  2157. public void setBuildFurnitureY(int buildFurnitureY) {
  2158. this.buildFurnitureY = buildFurnitureY;
  2159. }
  2160.  
  2161. public int getCombatRingType() {
  2162. return this.combatRingType;
  2163. }
  2164.  
  2165. public void setCombatRingType(int combatRingType) {
  2166. this.combatRingType = combatRingType;
  2167. }
  2168.  
  2169. public Room[][][] getHouseRooms() {
  2170. return houseRooms;
  2171. }
  2172.  
  2173. public ArrayList<Portal> getHousePortals() {
  2174. return housePortals;
  2175. }
  2176.  
  2177. public ArrayList<HouseFurniture> getHouseFurniture() {
  2178. return houseFurniture;
  2179. }
  2180.  
  2181. public int getConstructionInterface() {
  2182. return this.constructionInterface;
  2183. }
  2184.  
  2185. public void setConstructionInterface(int constructionInterface) {
  2186. this.constructionInterface = constructionInterface;
  2187. }
  2188.  
  2189. public int[] getBrawlerChargers() {
  2190. return this.brawlerCharges;
  2191. }
  2192.  
  2193. public void setBrawlerCharges(int[] brawlerCharges) {
  2194. this.brawlerCharges = brawlerCharges;
  2195. }
  2196.  
  2197. public int getRecoilCharges() {
  2198. return this.recoilCharges;
  2199. }
  2200.  
  2201. public int setRecoilCharges(int recoilCharges) {
  2202. return this.recoilCharges = recoilCharges;
  2203. }
  2204.  
  2205. public boolean voteMessageSent() {
  2206. return this.voteMessageSent;
  2207. }
  2208.  
  2209. public void setVoteMessageSent(boolean voteMessageSent) {
  2210. this.voteMessageSent = voteMessageSent;
  2211. }
  2212.  
  2213. public boolean didReceiveStarter() {
  2214. return receivedStarter;
  2215. }
  2216.  
  2217. public void sendMessage(String string) {
  2218. packetSender.sendMessage(string);
  2219. }
  2220.  
  2221. public void setReceivedStarter(boolean receivedStarter) {
  2222. this.receivedStarter = receivedStarter;
  2223. }
  2224.  
  2225. public BlowpipeLoading getBlowpipeLoading() {
  2226. return blowpipeLoading;
  2227. }
  2228.  
  2229. public boolean cloudsSpawned() {
  2230. return areCloudsSpawned;
  2231. }
  2232.  
  2233. public void setCloudsSpawned(boolean cloudsSpawned) {
  2234. this.areCloudsSpawned = cloudsSpawned;
  2235. }
  2236.  
  2237. public boolean isActive() {
  2238. return active;
  2239. }
  2240.  
  2241. public void setActive(boolean active) {
  2242. this.active = active;
  2243. }
  2244.  
  2245. public boolean isShopUpdated() {
  2246. return shopUpdated;
  2247. }
  2248.  
  2249. public void setShopUpdated(boolean shopUpdated) {
  2250. this.shopUpdated = shopUpdated;
  2251. }
  2252.  
  2253. public String getTitle() {
  2254. return title;
  2255. }
  2256.  
  2257. public void setTitle(String title) {
  2258. this.title = title;
  2259. }
  2260.  
  2261. public void write(Packet packet) {
  2262. }
  2263.  
  2264. public List<String> getShopList() {
  2265. return playerShopList;
  2266. }
  2267.  
  2268. public boolean isPlayerShopSearchExact() {
  2269. return playerShopSearchExact;
  2270. }
  2271.  
  2272. public void setPlayerShopSearchExact(boolean playerShopSearchExact) {
  2273. this.playerShopSearchExact = playerShopSearchExact;
  2274. }
  2275.  
  2276. public PlayerOwnedShopManager getPlayerOwnedShopManager() {
  2277. return PlayerOwnedShopmanager;
  2278. }
  2279.  
  2280. public LootingBag getLootingBag() {
  2281. return lootingBag;
  2282. }
  2283.  
  2284.  
  2285. private Zulrah zulrah = new Zulrah(this);
  2286.  
  2287. public Zulrah getZulrah() {
  2288. return zulrah;
  2289. }
  2290.  
  2291. public void getVotesClaimed() {
  2292. // TODO Auto-generated method stub
  2293.  
  2294. }
  2295. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement