#include <buy.h>
List of all members.
Detailed Description
The buy dialog.
Definition at line 41 of file buy.h.
Constructor & Destructor Documentation
BuyDialog::~BuyDialog |
( |
|
) |
|
Destructor.
Definition at line 110 of file buy.cpp.
Member Function Documentation
void BuyDialog::reset |
( |
|
) |
|
Resets the dialog, clearing shop inventory.
Definition at line 123 of file buy.cpp.
void BuyDialog::setMoney |
( |
int |
amount |
) |
|
Sets the amount of available money.
Definition at line 115 of file buy.cpp.
void BuyDialog::addItem |
( |
int |
id, |
|
|
int |
amount, |
|
|
int |
price | |
|
) |
| | |
Adds an item to the shop inventory.
Definition at line 135 of file buy.cpp.
void BuyDialog::action |
( |
const gcn::ActionEvent & |
event |
) |
|
Called when receiving actions from the widgets.
Definition at line 141 of file buy.cpp.
int BuyDialog::getNumberOfElements |
( |
|
) |
|
Returns the number of items in the shop inventory.
void BuyDialog::valueChanged |
( |
const gcn::SelectionEvent & |
event |
) |
|
Updates the labels according to the selected item.
Definition at line 203 of file buy.cpp.
std::string BuyDialog::getElementAt |
( |
int |
i |
) |
|
Returns the name of item number i in the shop inventory.
void BuyDialog::updateButtonsAndLabels |
( |
|
) |
|
Updates the state of buttons and labels.
Definition at line 213 of file buy.cpp.
void BuyDialog::logic |
( |
|
) |
|
void BuyDialog::setVisible |
( |
bool |
visible |
) |
|
Sets the visibility of this window.
Reimplemented from Window.
Definition at line 268 of file buy.cpp.
void BuyDialog::close |
( |
|
) |
[virtual] |
Closes the Buy Window, as well as resetting the current npc.
Reimplemented from Window.
Definition at line 276 of file buy.cpp.
Member Data Documentation
The documentation for this class was generated from the following files: