C# Class cs_elbot.TradeHandler

description of TradeHandler.
Show file Open project: Sir-Odie/CS-ELBot Class Usage Examples

Public Properties

Property Type Description
AcceptStateMe int
AcceptStatePartner int
Billance double
Donating bool
Gambling bool
Giving bool
MyItemList System.Collections.ArrayList
PartnerTradeItemsList System.Collections.Hashtable
PutOnSale bool
SentThanks bool
TradeTimer System.Timers.Timer
Trading bool
claimingPrize bool
depositMade bool
idleTradeTime int
idleWarningSent bool
invalidItem bool
itemTraded bool
itemsFoundInStorage bool
makingDeposit bool
makingWithdraw bool
openingStorage bool
storageAvailable bool
storageOpen bool
totalCalculated bool
totalOwed double
username string
withdrawMade bool

Public Methods

Method Description
AddTrade ( int KnownItemsSqlID, double price, uint quantity, string action ) : void
AmITrading ( ) : bool
LogTrade ( ) : void
PutItemsOnTrade ( int SQLID, uint quantity ) : uint
PutItemsOnTrade ( int SQLID, uint quantity, bool fromInventory ) : uint
TradeHandler ( TCPWrapper MyTCPWrapper, BasicCommunication MyMessageParser, MySqlManager MyMySqlManager, cs_elbot.Inventory MyInventory, AdvancedCommunication MyActorHandler, Logger MyLogger, cs_elbot.Storage MyStorage, cs_elbot.errorHandler MyErrorHandler, AdvancedCommunication MyHelpCommandHandler ) : System
stopTimer ( ) : void

Private Methods

Method Description
CheckBuyingItems ( TradeItem &MyTradeItem ) : bool
GET_TRADE_ABORT ( byte buffer ) : void
GET_TRADE_ACCEPT ( byte buffer ) : void
GET_TRADE_OBJECT ( byte buffer ) : void
GET_TRADE_REJECT ( byte buffer ) : void
GET_YOUR_TRADE_OBJECTS ( byte data ) : void
INVENTORY_ITEM_TEXT ( byte data ) : void
OnGotAbortTrade ( object sender, System e ) : void
OnGotCommand ( object sender, TCPWrapper e ) : void
OnGotNewInventoryList ( object sender, cs_elbot.Inventory e ) : void
OnGotPM ( object sender, BasicCommunication e ) : void
OnGotTradeRequest ( object sender, BasicCommunication e ) : void
OnGotTradeRequest ( object sender, BasicCommunication e, bool junk ) : void
REMOVE_TRADE_OBJECT ( byte buffer ) : void
STORAGE_ITEMS ( byte data ) : void
STORAGE_LIST ( byte data ) : void
STORAGE_TEXT ( byte data ) : void
TradeTimer_Tick ( object sender, System eArgs ) : void
doTotal ( string username, bool fromPM ) : void

Method Details

AddTrade() public method

public AddTrade ( int KnownItemsSqlID, double price, uint quantity, string action ) : void
KnownItemsSqlID int
price double
quantity uint
action string
return void

AmITrading() public method

public AmITrading ( ) : bool
return bool

LogTrade() public method

public LogTrade ( ) : void
return void

PutItemsOnTrade() public method

public PutItemsOnTrade ( int SQLID, uint quantity ) : uint
SQLID int
quantity uint
return uint

PutItemsOnTrade() public method

public PutItemsOnTrade ( int SQLID, uint quantity, bool fromInventory ) : uint
SQLID int
quantity uint
fromInventory bool
return uint

TradeHandler() public method

public TradeHandler ( TCPWrapper MyTCPWrapper, BasicCommunication MyMessageParser, MySqlManager MyMySqlManager, cs_elbot.Inventory MyInventory, AdvancedCommunication MyActorHandler, Logger MyLogger, cs_elbot.Storage MyStorage, cs_elbot.errorHandler MyErrorHandler, AdvancedCommunication MyHelpCommandHandler ) : System
MyTCPWrapper TCPWrapper
MyMessageParser BasicCommunication
MyMySqlManager MySqlManager
MyInventory cs_elbot.Inventory
MyActorHandler AdvancedCommunication
MyLogger Logger
MyStorage cs_elbot.Storage
MyErrorHandler cs_elbot.errorHandler
MyHelpCommandHandler AdvancedCommunication
return System

stopTimer() public method

public stopTimer ( ) : void
return void

Property Details

AcceptStateMe public property

public int AcceptStateMe
return int

AcceptStatePartner public property

public int AcceptStatePartner
return int

Billance public property

public double Billance
return double

Donating public property

public bool Donating
return bool

Gambling public property

public bool Gambling
return bool

Giving public property

public bool Giving
return bool

MyItemList public property

public ArrayList,System.Collections MyItemList
return System.Collections.ArrayList

PartnerTradeItemsList public property

public Hashtable,System.Collections PartnerTradeItemsList
return System.Collections.Hashtable

PutOnSale public property

public bool PutOnSale
return bool

SentThanks public property

public bool SentThanks
return bool

TradeTimer public property

public System.Timers.Timer TradeTimer
return System.Timers.Timer

Trading public property

public bool Trading
return bool

claimingPrize public property

public bool claimingPrize
return bool

depositMade public property

public bool depositMade
return bool

idleTradeTime public property

public int idleTradeTime
return int

idleWarningSent public property

public bool idleWarningSent
return bool

invalidItem public property

public bool invalidItem
return bool

itemTraded public property

public bool itemTraded
return bool

itemsFoundInStorage public property

public bool itemsFoundInStorage
return bool

makingDeposit public property

public bool makingDeposit
return bool

makingWithdraw public property

public bool makingWithdraw
return bool

openingStorage public static property

public static bool openingStorage
return bool

storageAvailable public property

public bool storageAvailable
return bool

storageOpen public static property

public static bool storageOpen
return bool

totalCalculated public property

public bool totalCalculated
return bool

totalOwed public property

public double totalOwed
return double

username public static property

public static string username
return string

withdrawMade public property

public bool withdrawMade
return bool