Dawn of Light - Class documentation 2900
This is the Dawn of Light project
DOL.GS.SelfCraftWindow Class Reference

SelfCraftWindow is the object used to cambine item alone. More...

Inheritance diagram for DOL.GS.SelfCraftWindow:
DOL.GS.ITradeWindow

List of all members.

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.

Detailed Description

SelfCraftWindow is the object used to cambine item alone.


Member Function Documentation

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.

Parameters:
itemForTradeInventoryItem to add
Returns:
true if added

Implements DOL.GS.ITradeWindow.

void DOL.GS.SelfCraftWindow.AddMoneyToTrade ( long  money)

Adds money to the tradewindow.

Parameters:
moneyArray 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)

Removes an item from the tradewindow.

Parameters:
itemToRemove

Implements DOL.GS.ITradeWindow.

void DOL.GS.SelfCraftWindow.TradeUpdate ( )

Updates the trade window.

Implements DOL.GS.ITradeWindow.


Member Data Documentation

Stores the begin changes count.

Holds the item used to combine on.

Holds the owner of this window and items in it.

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.

The max amount of items that can be added to tradewindow.


Property Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events