/
roa/
roa/lib/boards/
roa/lib/config/
roa/lib/edits/
roa/lib/help/
roa/lib/misc/
roa/lib/plrobjs/
roa/lib/quests/
roa/lib/socials/
roa/lib/www/
roa/lib/www/LEDSign/
roa/lib/www/LEDSign/fonts/
roa/lib/www/LEDSign/scripts/
roa/src/s_inc/
roa/src/sclient/
roa/src/sclient/binary/
roa/src/sclient/text/
roa/src/util/
/************************************************************************
	Realms of Aurealis 		James Rhone aka Vall of RoA

house.h					See below.

		******** Heavily modified and expanded ********
		*** BE AWARE OF ALL RIGHTS AND RESERVATIONS ***
		******** Heavily modified and expanded ********
		        All rights reserved henceforth. 

    Please note that no guarantees are associated with any code from
Realms of Aurealis.  All code which has been released to the general
public has been done so with an 'as is' pretense.  RoA is based on both
Diku and CircleMUD and ALL licenses from both *MUST* be adhered to as well
as the RoA license.   *** Read, Learn, Understand, Improve ***
*************************************************************************/
#ifndef ROA_HOUSE_H
#define ROA_HOUSE_H

//
//			Based on the house code of CircleMUD3.0
//			Modifications: jtrhone aka Vall
// 
// Modified: 1/6/97 -jthrhone (rewrite)

// this structure has been modified from its original form to protect
// the innocent... but seriously, RoA mods on houses continue
// some of the fields weren't needed due to RoAOLC
// removed the 'mode' field, added a bitvector for flags among other things

// various defines related to house information
#define MAX_HOUSES	99
#define MAX_GUESTS	10
#define MAX_HOUSE_OBJS	30

// this is for the house bitvector
#define HOUSE_PUBLIC		(1 << 0)
#define HOUSE_EXPANDABLE	(1 << 1)
#define HOUSE_FREE		(1 << 2)

struct house_control_rec {
   int vnum;			/* vnum of this house		*/

   long owner;			/* idnum of house's owner	*/
   long bitvector;		/* bitv for houses HOUSE_PUBLIC etc */

   time_t built_on;		/* date this house was built	*/
   time_t last_payment;		/* date of last house payment   */

   sh_int num_guests;	        /* how many guests for house	*/
   long guests[MAX_GUESTS];	/* idnums of house's guests	*/
};
typedef struct house_control_rec houserec;

// functions related to house use, found in house.c I believe -roa
void	House_listrent(struct char_data *ch, int vnum);
void	boot_houses(void);
void	House_save_all(void);
int	House_can_enter(struct char_data *ch, int house);
void	crashsave_house(int vnum);
void    delete_house_file(int vnum);
void	save_house_control(void);

#endif // ROA_HOUSE_H