c++ item tutorial
Posted: Fri Nov 27, 2009 5:48 pm
simple c++ item tutorial for those new to this
item properties code
item class
I will ad more later I will add things like how to program packages of items like i.e armor sets weapon sets how to include certain weapons in it and much more hope you like it and I hope it works!
item properties code
Code: Select all
struct item_data
{
std::string name;
std::string description;
unsigned long value;
unsigned long weight;
item class
Code: Select all
class item
{
public;
typedef unsigned long key
item(key_type() const;
const item_data& properties() const;
static void define(key_type, const item_data&);
};