Ludum Dare 29
HackSoc's entry for the Ludum Dare Jam 29
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Fields
Item Struct Reference

#include <item.h>

Collaboration diagram for Item:
Collaboration graph
[legend]

Data Fields

enum ItemType type
 
char symbol
 
char * name
 
bool luminous
 
List inventory
 
bool equipped
 
int value
 
void(* effect )(struct Mob *)
 

Detailed Description

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.

Field Documentation

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


The documentation for this struct was generated from the following file: