#ifndef BABBLEMUD_GAMEUTILS_H
#define BABBLEMUD_GAMEUTILS_H

const int getrandom (const int x);
const int roll (const int howmany, const int die);
const bool percent (const int prob);
void gamelog (const string & what, const thing * player = NULL);
void failedlog (const string & what, const thing * player);
void mobfailedlog (const string & what, const thing * player);
void webserverlog (const string & what, const thing * user = NULL);
const string convertErrorCode (const string & code, const string & prefix = "");
const string convertMessageCode (const string & code, const string & prefix = "");
const string makeRandomHash ();
const string plural (const int num, const string & units, const bool addSpace = true);
const string intervalString (const int seconds);


#endif // BABBLEMUD_GAMEUTILS_H
