C# Class BattleNet.ClientlessBot

Inheritance: IDisposable
Show file Open project: dkuwahara/AlphaBot Class Usage Examples

Public Properties

Property Type Description
debugging bool
m_bncs Bncs
m_dm DataManager
m_gs GameServer
m_mcp RealmServer

Protected Properties

Property Type Description
m_account String
m_battleNetServer String
m_binaryDirectory String
m_bncsThread Thread
m_chickenLife System.UInt32
m_classicKey String
m_connectedToGs System.Boolean
m_difficulty GameDifficulty
m_eventQueue GameEvent>.PriorityQueue
m_failedGame System.Boolean
m_firstGame System.Boolean
m_gameCreationThread Thread
m_gameData GameData
m_gameExeInformation String
m_gameName String
m_gamePassword String
m_gameRequestId System.UInt16
m_gsHash List
m_gsIp System.Net.IPAddress
m_gsThread Thread
m_gsToken List
m_keyOwner String
m_loggedin System.Boolean
m_mcpData List
m_mcpIp System.Net.IPAddress
m_mcpPort System.UInt16
m_mcpThread Thread
m_serverToken System.UInt32
m_status ClientStatus

Public Methods

Method Description
AddNewEvent ( byte priority, GameEvent newEvent ) : void
Attack ( UInt32 id ) : bool
BotThreadFunction ( ) : void
CastOnCoord ( UInt16 x, UInt16 y ) : void
CastOnObject ( uint id ) : void
CastOnSelf ( ) : void
ClientlessBot ( DataManager dm, String bnetServer, String account, String password, String classicKey, String expansionKey, uint potlife, uint chickenlife, String binaryDirectory, GameDifficulty difficulty, String gamepass ) : System
CreateGameThreadFunction ( ) : void
DetermineCharacterSkillSetup ( ) : void
Dispose ( ) : void
Dispose ( bool disposing ) : void
GetAliveNpc ( String name, double range, NpcEntity &output ) : bool
GetNextEvent ( ) : GameEvent
GetNpc ( String name ) : NpcEntity
GetSkillLevel ( Skills skill ) : UInt32
InitializeGameData ( ) : void
JoinGame ( ) : void
LeaveGame ( ) : void
MakeGame ( ) : void
MoveTo ( Coordinate target ) : void
MoveTo ( UInt16 x, UInt16 y ) : void
PickItems ( ) : void
Precast ( ) : void
ReceivedGameServerPacket ( List data ) : void
RequestReassignment ( ) : void
SendPacket ( byte command ) : void
Start ( ) : void
StartGameCreationThread ( ) : void
StartGameServerThread ( ) : void
StartMcpThread ( ) : void
StashItems ( ) : void
SwitchSkill ( uint skill ) : bool
TalkToHealer ( UInt32 id ) : bool
TalkToTrader ( UInt32 id ) : bool
Time ( ) : int
TownPortal ( ) : bool
UsePotion ( ) : bool
WeaponSwap ( ) : void

Private Methods

Method Description
ClientlessBot ( DataManager dm ) : System

Method Details

AddNewEvent() public method

public AddNewEvent ( byte priority, GameEvent newEvent ) : void
priority byte
newEvent GameEvent
return void

Attack() public method

public Attack ( UInt32 id ) : bool
id System.UInt32
return bool

BotThreadFunction() public method

public BotThreadFunction ( ) : void
return void

CastOnCoord() public method

public CastOnCoord ( UInt16 x, UInt16 y ) : void
x System.UInt16
y System.UInt16
return void

CastOnObject() public method

public CastOnObject ( uint id ) : void
id uint
return void

CastOnSelf() public method

public CastOnSelf ( ) : void
return void

ClientlessBot() public method

public ClientlessBot ( DataManager dm, String bnetServer, String account, String password, String classicKey, String expansionKey, uint potlife, uint chickenlife, String binaryDirectory, GameDifficulty difficulty, String gamepass ) : System
dm DataManager
bnetServer String
account String
password String
classicKey String
expansionKey String
potlife uint
chickenlife uint
binaryDirectory String
difficulty GameDifficulty
gamepass String
return System

CreateGameThreadFunction() public method

public CreateGameThreadFunction ( ) : void
return void

DetermineCharacterSkillSetup() public method

public DetermineCharacterSkillSetup ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() public method

public Dispose ( bool disposing ) : void
disposing bool
return void

GetAliveNpc() public method

public GetAliveNpc ( String name, double range, NpcEntity &output ) : bool
name String
range double
output NpcEntity
return bool

GetNextEvent() public method

public GetNextEvent ( ) : GameEvent
return GameEvent

GetNpc() public method

public GetNpc ( String name ) : NpcEntity
name String
return NpcEntity

GetSkillLevel() public method

public GetSkillLevel ( Skills skill ) : UInt32
skill Skills
return System.UInt32

InitializeGameData() public method

public InitializeGameData ( ) : void
return void

JoinGame() public method

public JoinGame ( ) : void
return void

LeaveGame() public method

public LeaveGame ( ) : void
return void

MakeGame() public method

public MakeGame ( ) : void
return void

MoveTo() public method

public MoveTo ( Coordinate target ) : void
target Coordinate
return void

MoveTo() public method

public MoveTo ( UInt16 x, UInt16 y ) : void
x System.UInt16
y System.UInt16
return void

PickItems() public method

public PickItems ( ) : void
return void

Precast() public method

public Precast ( ) : void
return void

ReceivedGameServerPacket() public method

public ReceivedGameServerPacket ( List data ) : void
data List
return void

RequestReassignment() public method

public RequestReassignment ( ) : void
return void

SendPacket() public method

public SendPacket ( byte command ) : void
command byte
return void

Start() public method

public Start ( ) : void
return void

StartGameCreationThread() public method

public StartGameCreationThread ( ) : void
return void

StartGameServerThread() public method

public StartGameServerThread ( ) : void
return void

StartMcpThread() public method

public StartMcpThread ( ) : void
return void

StashItems() public method

public StashItems ( ) : void
return void

SwitchSkill() public method

public SwitchSkill ( uint skill ) : bool
skill uint
return bool

TalkToHealer() public method

public TalkToHealer ( UInt32 id ) : bool
id System.UInt32
return bool

TalkToTrader() public method

public TalkToTrader ( UInt32 id ) : bool
id System.UInt32
return bool

Time() public method

public Time ( ) : int
return int

TownPortal() public method

public TownPortal ( ) : bool
return bool

UsePotion() public method

public UsePotion ( ) : bool
return bool

WeaponSwap() public method

public WeaponSwap ( ) : void
return void

Property Details

debugging public static property

public static bool debugging
return bool

m_account protected property

protected String m_account
return String

m_battleNetServer protected property

protected String m_battleNetServer
return String

m_binaryDirectory protected property

protected String m_binaryDirectory
return String

m_bncs public property

public Bncs,BattleNet m_bncs
return Bncs

m_bncsThread protected property

protected Thread m_bncsThread
return Thread

m_chickenLife protected property

protected UInt32,System m_chickenLife
return System.UInt32

m_classicKey protected property

protected String m_classicKey
return String

m_connectedToGs protected property

protected Boolean,System m_connectedToGs
return System.Boolean

m_difficulty protected property

protected GameDifficulty m_difficulty
return GameDifficulty

m_dm public property

public DataManager,BattleNet m_dm
return DataManager

m_eventQueue protected property

protected PriorityQueue m_eventQueue
return GameEvent>.PriorityQueue

m_failedGame protected property

protected Boolean,System m_failedGame
return System.Boolean

m_firstGame protected property

protected Boolean,System m_firstGame
return System.Boolean

m_gameCreationThread protected property

protected Thread m_gameCreationThread
return Thread

m_gameData protected property

protected GameData,BattleNet m_gameData
return GameData

m_gameExeInformation protected property

protected String m_gameExeInformation
return String

m_gameName protected property

protected String m_gameName
return String

m_gamePassword protected property

protected String m_gamePassword
return String

m_gameRequestId protected property

protected UInt16,System m_gameRequestId
return System.UInt16

m_gs public property

public GameServer,BattleNet m_gs
return GameServer

m_gsHash protected property

protected List m_gsHash
return List

m_gsIp protected property

protected IPAddress,System.Net m_gsIp
return System.Net.IPAddress

m_gsThread protected property

protected Thread m_gsThread
return Thread

m_gsToken protected property

protected List m_gsToken
return List

m_keyOwner protected property

protected String m_keyOwner
return String

m_loggedin protected property

protected Boolean,System m_loggedin
return System.Boolean

m_mcp public property

public RealmServer,BattleNet m_mcp
return RealmServer

m_mcpData protected property

protected List m_mcpData
return List

m_mcpIp protected property

protected IPAddress,System.Net m_mcpIp
return System.Net.IPAddress

m_mcpPort protected property

protected UInt16,System m_mcpPort
return System.UInt16

m_mcpThread protected property

protected Thread m_mcpThread
return Thread

m_serverToken protected property

protected UInt32,System m_serverToken
return System.UInt32

m_status protected property

protected ClientStatus m_status
return ClientStatus