Class EventMediator
- java.lang.Object
-
- org.rspeer.game.provider.callback.EventMediator
-
public class EventMediator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static org.rspeer.environment.ClientModeCLIENT_MODE
-
Constructor Summary
Constructors Constructor Description EventMediator(org.rspeer.environment.uid.hwid.HWIDService hwidService, EngineTasks engineTasks, SocketProvider socketProvider, FpsManager fpsManager, OverlayManager overlayManager, PacketManager packetManager, PacketReplay packetReplay, MenuOpcodeManager menuOpcodeManager, ScriptOpcodeManager scriptOpcodeManager, PingService pingService, org.rspeer.environment.arguments.Arguments arguments)
-
Method Summary
-
-
-
Constructor Detail
-
EventMediator
@Inject public EventMediator(org.rspeer.environment.uid.hwid.HWIDService hwidService, EngineTasks engineTasks, SocketProvider socketProvider, FpsManager fpsManager, OverlayManager overlayManager, PacketManager packetManager, PacketReplay packetReplay, MenuOpcodeManager menuOpcodeManager, ScriptOpcodeManager scriptOpcodeManager, PingService pingService, org.rspeer.environment.arguments.Arguments arguments)
-
-
Method Detail
-
openConnection
public static URLConnection openConnection(URL url) throws IOException
- Throws:
IOException
-
isInterfaceEnabled
public boolean isInterfaceEnabled(int group)
-
getFpsManager
public FpsManager getFpsManager()
-
getEngineTasks
public EngineTasks getEngineTasks()
-
notifyWriteLater
public void notifyWriteLater(RSConnectionContext ctx, RSOutgoingPacket packet)
-
isFramePresent
public boolean isFramePresent()
-
notifyServerRead
public void notifyServerRead(RSConnectionContext ctx, RSPacketBuffer buf)
-
notifyRawServerRead
public void notifyRawServerRead(RSAsyncInputStream inputStream, int len, int result)
-
notifyAsyncInputStreamAvailable
public int notifyAsyncInputStreamAvailable()
-
notifyAsyncInputStreamIsAvailable
public int notifyAsyncInputStreamIsAvailable(int amount)
-
notifyAsyncInputStreamRead
public int notifyAsyncInputStreamRead(byte[] buffer, int offset, int length)
-
notifyAsyncInputStreamReadUnsignedByte
public int notifyAsyncInputStreamReadUnsignedByte()
-
notifyProcessDisconnect
public boolean notifyProcessDisconnect()
-
notifySetLoginStateRaw
public boolean notifySetLoginStateRaw(int newState)
-
notifyRender
public boolean notifyRender(RSGameEngine engine)
-
notifyFlush
public boolean notifyFlush(RSConnectionContext ctx)
-
notifySkillUpdate
public void notifySkillUpdate(int index, int experience)
-
notifyRandomInitialization
public void notifyRandomInitialization()
-
notifyTinyenc
public void notifyTinyenc(RSBuffer ctx, int[] key, int start, int end)
-
notifyPdata
public void notifyPdata(RSBuffer ctx, byte[] buffer, int offset, int length)
-
notifyDrawTileOverlay
public void notifyDrawTileOverlay(RSTileModel model, int x, int y)
-
notifyPostDrawTileOverlay
public void notifyPostDrawTileOverlay()
-
notifyDrawTileUnderlay
public void notifyDrawTileUnderlay(int x, int y, int y0, int x0, int y1, int x1, int y2, int x2, int y3, int x3)
-
notifyDraw
public void notifyDraw(RSModel model, boolean p1, boolean p2, boolean p3, long uid)
-
notifySceneProjection
public void notifySceneProjection(RSSceneGraph sceneGraph, RSProjection projection)
-
notifyDefaultToPreciseProjection
public void notifyDefaultToPreciseProjection(RSSceneGraph sceneGraph, RSPreciseProjection preciseProjection)
-
notifyDefaultToPreciseMatrix
public void notifyDefaultToPreciseMatrix(RSSceneGraph sceneGraph, RSMatrix4x4 m4x4)
-
notifyProjectileMovement
public void notifyProjectileMovement(RSProjectile proj)
-
notifyAddHitSplat
public void notifyAddHitSplat(RSPathingEntity entity, int type, int damage, int specialType, int specialDamage, int currentCycle, int delay)
-
notifyPathingEntityMoved
public void notifyPathingEntityMoved(RSPathingEntity entity, int newX, int newY, boolean tileMovement)
-
notifyAddHitUpdate
public void notifyAddHitUpdate(RSPathingEntity entity, int id, int startCycle, int currentCycle, int duration, int startWidth, int currentWidth)
-
notifyProcessPlacedAudioEffect
public void notifyProcessPlacedAudioEffect(int var0, int var1, int var2, int var3, int var4, int var5, int var6, int var7, boolean var8)
-
notifySystemInformationInitialization
public void notifySystemInformationInitialization()
-
spoofDeviceId
public String spoofDeviceId()
-
notifyInventoryUpdate
public void notifyInventoryUpdate(int key, int index, int id, int stack)
-
notifyTableInsertion
public void notifyTableInsertion(RSNode node)
-
notifyXteaKeys
public void notifyXteaKeys(int i, int[] is)
-
preNotifyXteaKeys
public void preNotifyXteaKeys(int i, int[] is)
-
notifyRegionUpdate
public void notifyRegionUpdate()
-
notifyDynamicObjectSpawn
public void notifyDynamicObjectSpawn(RSDynamicObject object)
-
notifySpawnPickable
public void notifySpawnPickable(RSWorldMatrix world, int floor, int sceneX, int sceneY, int id, int quantity, int opFlag, int ticksUntilReveal, int ticksUntilDespawn, int ownerType, boolean unk)
-
notifySpawnObjectLater
public void notifySpawnObjectLater(RSWorldMatrix worldMatrix, int plane, int x, int y, int tag, int id, int transform, int orientation, int hidden, String[] idk, int startCycle, int endCycle)
-
notifyMouseRecord
public void notifyMouseRecord(int x, int y, int xd, int yd, int td)
-
notifyPickablesDeque
public void notifyPickablesDeque(int floor, int sceneX, int sceneY, RSPickable pickable)
-
notifyProjectilesDeque
public void notifyProjectilesDeque(RSProjectile projectile)
-
notifyEffectObjectsDeque
public void notifyEffectObjectsDeque(RSEffectObject effect)
-
notifyProcessDialogActionPacket
public void notifyProcessDialogActionPacket(int uid, int subcomponent)
-
visitScriptInstruction
public void visitScriptInstruction(RSScriptEvent context, RSRuneScript script, int opcode, int pcIndex)
-
preprocessOpcode
public int preprocessOpcode(int opcode, RSRuneScript script, boolean bool)
-
notifyScriptOpcodeProcessed
public int notifyScriptOpcodeProcessed(RSScriptEvent context, RSRuneScript script, int opcode, int result, boolean dot)
-
notifyFireScriptEvent
public void notifyFireScriptEvent(RSScriptEvent event)
-
notifyStockMarketListing
public void notifyStockMarketListing(RSStockMarketTransaction transaction)
-
notifyStockMarketUpdate
public void notifyStockMarketUpdate(int index, RSStockMarketTransaction transaction)
-
notifyPleaseWaitUpdated
public void notifyPleaseWaitUpdated()
-
notifyTargetIndex
public void notifyTargetIndex(Object object, int prev, int curr)
-
notifyPathingEntityEffect
public void notifyPathingEntityEffect(RSPathingEntity entity, int effectId)
-
notifyVarcInt
public void notifyVarcInt(int index, int newValue)
-
notifyVarcString
public void notifyVarcString(int index, String newValue)
-
notifyServerTick
public void notifyServerTick()
-
notifySetAnimationId
public void notifySetAnimationId(RSPathingEntity object, int next)
-
preNotifyItemIds
public void preNotifyItemIds(int index, int[] array)
-
notifyItemIds
public void notifyItemIds(int index, int[] array)
-
notifyProcessLoginResponse
public void notifyProcessLoginResponse(int code)
-
notifyMessageReceived
public void notifyMessageReceived(int type, String source, String contents, String channel)
-
notifyProcessAction
public boolean notifyProcessAction(int sec, int ter, int op, int pri, int quat, int matrixId, String action, String target, int crosshairX, int crosshairY)
-
notifyBuildMenu
public void notifyBuildMenu()
-
notifyWorldMapTick
public void notifyWorldMapTick()
-
notifyChunkUpdate
public void notifyChunkUpdate(int newChunk, int x, int y, int z)
-
notifySetGameState
public void notifySetGameState(int newState)
-
notifyNpcUpdate
public void notifyNpcUpdate()
-
notifyNpcCreated
public void notifyNpcCreated(RSNpc npc)
-
onUnlinkTriplyNode
public void onUnlinkTriplyNode(RSTriplyLinkedNode node)
-
onTriplyLinkedNodeTableInsertion
public void onTriplyLinkedNodeTableInsertion(RSTriplyLinkedNodeTable table, RSTriplyLinkedNode node)
-
notifyNpcUnloading
public void notifyNpcUnloading(RSNpc npc)
-
notifyNpcUpdateDone
public void notifyNpcUpdateDone()
-
notifyDraw
public void notifyDraw(RSClient ctx, boolean idk)
-
notifyPreEntitiesRendered
public void notifyPreEntitiesRendered()
-
notifyEntitiesRendered
public void notifyEntitiesRendered()
-
notifyDrawGame
public void notifyDrawGame(RSGraphicsProvider ctx, Graphics graphics, int width, int height)
-
notifyMouseClicked
public boolean notifyMouseClicked(RSCanvasMouseListener l, MouseEvent e)
-
notifyMousePressed
public boolean notifyMousePressed(RSCanvasMouseListener l, MouseEvent e)
-
notifyMouseReleased
public boolean notifyMouseReleased(RSCanvasMouseListener l, MouseEvent e)
-
notifyMouseEntered
public boolean notifyMouseEntered(RSCanvasMouseListener l, MouseEvent e)
-
notifyMouseExited
public boolean notifyMouseExited(RSCanvasMouseListener l, MouseEvent e)
-
notifyMouseDragged
public boolean notifyMouseDragged(RSCanvasMouseListener l, MouseEvent e)
-
notifyMouseMoved
public boolean notifyMouseMoved(RSCanvasMouseListener l, MouseEvent e)
-
notifyKeyTyped
public boolean notifyKeyTyped(RSCanvasKeyListener l, KeyEvent e)
-
notifyKeyPressed
public boolean notifyKeyPressed(RSCanvasKeyListener l, KeyEvent e)
-
notifyKeyReleased
public boolean notifyKeyReleased(RSCanvasKeyListener l, KeyEvent e)
-
-