Main Page Class Hierarchy Compound List File List Compound Members
Shop Class Reference
The functionality for providing the buy/sell UI is actually provided by the game, and an object of type Shop should be included in the CGame class definition.
More...
#include <Shops.h>
List of all members.
Public Methods |
void | loadItems (char *name) |
| loads items from a file.
|
| Shop () |
| builds basic crap, to prevent memory problems.
|
Public Attributes |
vector< Item * > | shopItems |
| holds all the items in the shop.
|
Detailed Description
The functionality for providing the buy/sell UI is actually provided by the game, and an object of type Shop should be included in the CGame class definition.
Regardless, this holds a vector of items and their prices, and can load them right from a local text file. See Shops.cpp for the load code.
The documentation for this class was generated from the following files:
Generated on Thu Jun 3 16:21:29 2004 by
1.2.15