|
Ludum Dare 29
HackSoc's entry for the Ludum Dare Jam 29
|
#include <item.h>

Data Fields | |
| enum ItemType | type |
| char | symbol |
| char * | name |
| bool | luminous |
| List | inventory |
| bool | equipped |
| int | value |
| void(* | effect )(struct Mob *) |
Items are things that mobs can carry around, and possibly equip. They live in inventories. Note: when a mob picks up or drops a luminous item, its (the mob) luminosity should change by 1.
| void(* Item::effect)(struct Mob *) |
Some type-dependent effect
| bool Item::equipped |
Whether the item is equipped or not
| List Item::inventory |
The inventory to which this item belongs.
| bool Item::luminous |
Whether the item is luminous or not
| char* Item::name |
The name to display when examined
| char Item::symbol |
The symbol to display when dropped
| enum ItemType Item::type |
The type of the item.
| int Item::value |
Some type-dependent value
1.8.7