/** Force a packet to be sent. */ public void sendPacket() { // Also save stuff to a player's local hard-drive. if (activationEvent) { View MyView = MyHacker.getView(); Object[] send = new Object[] {new Integer(activationID), new Integer(activationType), MyHacker.getIP()}; MyView.addFunctionCall( new RemoteFunctionCall(Hacker.HACKTENDO_PLAYER, "hacktendoActivate", send)); } else if (targetEvent) { View MyView = MyHacker.getView(); Object[] send = null; if (playerSprite != null) send = new Object[] { new Integer(targetX), new Integer(targetY), MyHacker.getIP(), new Integer(playerSprite.getX()), new Integer(playerSprite.getY()) }; else send = new Object[] { new Integer(targetX), new Integer(targetY), MyHacker.getIP(), new Integer(targetX), new Integer(targetY) }; MyView.addFunctionCall( new RemoteFunctionCall(Hacker.HACKTENDO_PLAYER, "hacktendoTarget", send)); } activationEvent = false; targetEvent = false; }
public void actionPerformed(ActionEvent e) { Object objects[] = { hacker.getEncryptedIP(), "GroundZero", "UGOPNet", "SubNet", "ProgNet", "UniversityNet", "UND", "DarkNet", "SpyNet", "ArenaNet", "The Arena", "LunarMicrosystems", "LunarDatabank", "LunarCreditUnion", "LunarCorporate", "LunarLabs", "LunarSat", "LunarColonies", "LunarSpecOps", "DoSC", "DoSCDatabank", "DoSCBank", "DTNet", "GeNet", "SiNet", "YBCONet", "PuNet", "LawNet", "UGoPIntranet", "UGoPDatabank", "UGoPVault", "UGoPCorporate", "InnerCircle", "TerrorLeaders", "TerrorNet", "TerrorWeaponsNet", "TerrorStash", "Wastelands" }; hacker.getView().setFunction("changenetwork"); hacker.getView().addFunctionCall(new RemoteFunctionCall(0, "changenetwork", objects)); }