* Copyright (c) 1983 Regents of the University of California,
* All rights reserved. Redistribution permitted subject to
* the terms of the Berkeley Software License Agreement.
static char sccsid
[] = "@(#)room.c 1.3 %G%";
printf("\n\t%s\n", location
[position
].name
);
if (beenthere
[position
] < 3) {
for (p
= location
[position
].desc
; c
= *p
++;)
if (c
!= '-' && c
!= '*' && c
!= '+')
printf(truedirec(compass
, c
));
register unsigned int *p
= location
[position
].objects
;
for (n
= 0; n
< NUMOFOBJECTS
; n
++)
if (testbit(p
, n
) && objdes
[n
])
return(option
== '+' ? "behind you" : "back");
return(option
== '+' ? "behind you" : "back");
return(option
== '+' ? "behind you" : "back");
return(option
== '+' ? "behind you" : "back");
printf("Error: room %d. More than four directions wanted.", position
);