musicmud-2.1.6/data/
musicmud-2.1.6/data/help/
musicmud-2.1.6/data/policy/
musicmud-2.1.6/data/wild/
musicmud-2.1.6/data/world/
musicmud-2.1.6/doc/
musicmud-2.1.6/src/ident/
musicmud-2.1.6/src/lua/
musicmud-2.1.6/src/lua/include/
musicmud-2.1.6/src/lua/src/lib/
musicmud-2.1.6/src/lua/src/lua/
musicmud-2.1.6/src/lua/src/luac/
#ifndef UNITS_H
#define UNITS_H

#define HECTOGRAM   100
#define KILOGRAM    1000
#define TON         1000000
#define KILOTON     1000000000

#define MILLILITRE  1
#define CENTILITRE  100
#define LITRE       1000

#define PINT        568


//! format the mass /m/ in grams for /who/.
string format_grams(int m, MudObject *who);

//! obtain the mass in grams of /what/, recursively if /recurse/
int mass_in_grams(MudObject *what, bool recurse=1);

//! obtian the mass used in grams of the contents of /what/
int mass_used_in_grams(MudObject *what);

//! obtain the mass capacity of /what/
int mass_capacity_in_grams(MudObject *what, int grams=-1);

//! obtain the msas capacity left of /what/
int mass_capacity_left_in_grams(MudObject *what);

//! set mass capcity of /what/ to /grams/
void set_mass_capacity(MudObject *what, int grams);

//! obtain the used volume of /what/ in mils.
int used_volume(MudObject *what);

#endif