C# Class Ultima.Client

Mostra file Open project: polserver/poltools

Public Methods

Method Description
BringToTop ( ) : bool

Brings the Client window to the foreground.

Calibrate ( ) : void

Attempts to automatically calibrate the FindLocation method.

Calibrate ( CalibrationInfo info ) : void

Attempts to automatically calibrate the FindLocation method.

Calibrate ( int x, int y, int z ) : void

Attempts to calibrate the FindLocation method based on an input x, y, and z. FindLocation ProcessStream

FindLocation ( int &x, int &y, int &z, int &facet ) : bool

Reads the current x, y, and z from memory based on a calibrated memory location. Calibrate ProcessStream True if the location was found, false if not

Read ( ProcessStream pc, int bytes ) : int
Search ( ProcessStream pc, byte buffer ) : int
Search ( ProcessStream pc, byte mask, byte vals ) : int
SendText ( string text ) : bool

Sends a String of characters (text) to the Client. The string is followed by a carriage return and line feed.

Private Methods

Method Description
Client ( ) : System
FindHandle ( ) : ClientWindowHandle
GetCoordDetails ( ProcessStream pc, int ptr, byte dets, int &coordPointer, int &coordSize ) : void
SendChar ( ClientWindowHandle hWnd, char c ) : void

Method Details

BringToTop() public static method

Brings the Client window to the foreground.
public static BringToTop ( ) : bool
return bool

Calibrate() public static method

Attempts to automatically calibrate the FindLocation method.
public static Calibrate ( ) : void
return void

Calibrate() public static method

Attempts to automatically calibrate the FindLocation method.
public static Calibrate ( CalibrationInfo info ) : void
info CalibrationInfo
return void

Calibrate() public static method

Attempts to calibrate the FindLocation method based on an input x, y, and z. FindLocation ProcessStream
public static Calibrate ( int x, int y, int z ) : void
x int
y int
z int
return void

FindLocation() public static method

Reads the current x, y, and z from memory based on a calibrated memory location. Calibrate ProcessStream True if the location was found, false if not
public static FindLocation ( int &x, int &y, int &z, int &facet ) : bool
x int
y int
z int
facet int
return bool

Read() public static method

public static Read ( ProcessStream pc, int bytes ) : int
pc ProcessStream
bytes int
return int

Search() public static method

public static Search ( ProcessStream pc, byte buffer ) : int
pc ProcessStream
buffer byte
return int

Search() public static method

public static Search ( ProcessStream pc, byte mask, byte vals ) : int
pc ProcessStream
mask byte
vals byte
return int

SendText() public static method

Sends a String of characters (text) to the Client. The string is followed by a carriage return and line feed.
public static SendText ( string text ) : bool
text string
return bool