#include "player.h"#include "item.h"#include "npc.h"

Defines | |
| #define | ADD_ITEM_IN_SHOPS_CON(...) |
| #define | SET_NUM_SH(cnum) it_sh.num = cnum; |
| #define | SET_NAME_SH(cname) cit->name = cname; |
| #define | SET_ID_SH(cid) cit->id = cid; |
| #define | SET_CLASS_SH(cclass) cit->class = cclass; |
| #define | SET_LEVEL_SH(clevel) cit->level = clevel; |
| #define | SET_SUBCLASS_SH(csubclass) cit->subclass = csubclass; |
Functions | |
| void | init_shops () |
| void | clean_shops () |
| void | shopping (int columns, int rows, struct player *pl, struct npc n) |
Variables | |
| struct item_container * | all_items |
| int | all_items_num |
| #define ADD_ITEM_IN_SHOPS_CON | ( | ... | ) |
{struct item_container it_sh; \
struct item *cit = malloc (sizeof (struct item)); it_sh.con = cit; \
__VA_ARGS__ *(all_items+all_items_num) = it_sh; all_items_num++;}
| #define SET_CLASS_SH | ( | cclass | ) | cit->class = cclass; |
| #define SET_ID_SH | ( | cid | ) | cit->id = cid; |
| #define SET_LEVEL_SH | ( | clevel | ) | cit->level = clevel; |
| #define SET_NAME_SH | ( | cname | ) | cit->name = cname; |
| #define SET_NUM_SH | ( | cnum | ) | it_sh.num = cnum; |
| #define SET_SUBCLASS_SH | ( | csubclass | ) | cit->subclass = csubclass; |
| void clean_shops | ( | ) |
| void init_shops | ( | ) |

| struct item_container* all_items |
| int all_items_num |
1.6.3