![]() |
Dawn of Light - Class documentation 2900
This is the Dawn of Light project
|
SelfCraftWindow is the object used to cambine item alone. More...
Public Member Functions | |
SelfCraftWindow (GamePlayer owner, InventoryItem item) | |
bool | AddItemToTrade (InventoryItem itemForTrade) |
Adds an item to the tradewindow. | |
void | AddMoneyToTrade (long money) |
Adds money to the tradewindow. | |
void | RemoveItemToTrade (InventoryItem itemToRemove) |
Removes an item from the tradewindow. | |
void | TradeUpdate () |
Updates the trade window. | |
bool | AcceptTrade () |
Called each time a player push the accept button to accept the trade. | |
void | CloseTrade () |
Closes the tradewindow. | |
Public Attributes | |
const int | MAX_ITEMS = 10 |
The max amount of items that can be added to tradewindow. | |
Protected Attributes | |
ArrayList | m_tradeItems |
Holds a list of items used to combine with. | |
GamePlayer | m_owner |
Holds the owner of this window and items in it. | |
ArrayList | m_itemToCombine |
Holds the item used to combine on. | |
bool | m_tradeAccept |
Holds if we have accepted the trade or not. | |
int | m_changesCount |
Stores the begin changes count. | |
Properties | |
ArrayList | TradeItems [get, set] |
Returns the array of items used to combine with. | |
ArrayList | PartnerTradeItems [get] |
Returns the array of items the partner offer for trade. | |
long | TradeMoney [get, set] |
Returns the money we offer for trade. | |
long | PartnerTradeMoney [get] |
Returns the money the partner offer for trade. | |
GamePlayer | Owner [get] |
Gets the owner of this window and items in it. | |
GamePlayer | Partner [get] |
Gets the owner of this window and items in it. | |
object | Sync [get] |
Gets the access sync object for this and TradePartner windows. | |
int | ItemsCount [get] |
Gets the item count in trade window. | |
int | PartnerItemsCount [get] |
Gets the item count in partner trade window. | |
bool | Repairing [get, set] |
Gets or sets the repair flag is switched. | |
bool | Combine [get, set] |
Gets or sets the combine flag is switched. |
SelfCraftWindow is the object used to cambine item alone.
bool DOL.GS.SelfCraftWindow.AcceptTrade | ( | ) |
Called each time a player push the accept button to accept the trade.
Implements DOL.GS.ITradeWindow.
bool DOL.GS.SelfCraftWindow.AddItemToTrade | ( | InventoryItem | itemForTrade | ) |
Adds an item to the tradewindow.
itemForTrade | InventoryItem to add |
Implements DOL.GS.ITradeWindow.
void DOL.GS.SelfCraftWindow.AddMoneyToTrade | ( | long | money | ) |
Adds money to the tradewindow.
money | Array of money values to add |
Implements DOL.GS.ITradeWindow.
void DOL.GS.SelfCraftWindow.CloseTrade | ( | ) |
Closes the tradewindow.
Implements DOL.GS.ITradeWindow.
void DOL.GS.SelfCraftWindow.RemoveItemToTrade | ( | InventoryItem | itemToRemove | ) |
void DOL.GS.SelfCraftWindow.TradeUpdate | ( | ) |
Updates the trade window.
Implements DOL.GS.ITradeWindow.
int DOL.GS.SelfCraftWindow.m_changesCount [protected] |
Stores the begin changes count.
ArrayList DOL.GS.SelfCraftWindow.m_itemToCombine [protected] |
Holds the item used to combine on.
GamePlayer DOL.GS.SelfCraftWindow.m_owner [protected] |
Holds the owner of this window and items in it.
bool DOL.GS.SelfCraftWindow.m_tradeAccept [protected] |
Holds if we have accepted the trade or not.
ArrayList DOL.GS.SelfCraftWindow.m_tradeItems [protected] |
Holds a list of items used to combine with.
const int DOL.GS.SelfCraftWindow.MAX_ITEMS = 10 |
The max amount of items that can be added to tradewindow.
bool DOL.GS.SelfCraftWindow.Combine [get, set] |
Gets or sets the combine flag is switched.
Implements DOL.GS.ITradeWindow.
int DOL.GS.SelfCraftWindow.ItemsCount [get] |
Gets the item count in trade window.
Implements DOL.GS.ITradeWindow.
GamePlayer DOL.GS.SelfCraftWindow.Owner [get] |
Gets the owner of this window and items in it.
Implements DOL.GS.ITradeWindow.
GamePlayer DOL.GS.SelfCraftWindow.Partner [get] |
Gets the owner of this window and items in it.
Implements DOL.GS.ITradeWindow.
int DOL.GS.SelfCraftWindow.PartnerItemsCount [get] |
Gets the item count in partner trade window.
Implements DOL.GS.ITradeWindow.
ArrayList DOL.GS.SelfCraftWindow.PartnerTradeItems [get] |
Returns the array of items the partner offer for trade.
Implements DOL.GS.ITradeWindow.
long DOL.GS.SelfCraftWindow.PartnerTradeMoney [get] |
Returns the money the partner offer for trade.
Implements DOL.GS.ITradeWindow.
bool DOL.GS.SelfCraftWindow.Repairing [get, set] |
Gets or sets the repair flag is switched.
Implements DOL.GS.ITradeWindow.
object DOL.GS.SelfCraftWindow.Sync [get] |
Gets the access sync object for this and TradePartner windows.
Implements DOL.GS.ITradeWindow.
ArrayList DOL.GS.SelfCraftWindow.TradeItems [get, set] |
Returns the array of items used to combine with.
Implements DOL.GS.ITradeWindow.
long DOL.GS.SelfCraftWindow.TradeMoney [get, set] |
Returns the money we offer for trade.
Implements DOL.GS.ITradeWindow.