/
lib/banish/
lib/d/
lib/doc/
lib/doc/domains/
lib/doc/efun/
lib/doc/examples/
lib/doc/examples/armour/
lib/doc/examples/contain/
lib/doc/examples/food/
lib/doc/examples/magic/
lib/doc/examples/monster/
lib/doc/examples/room/
lib/doc/examples/weapons/
lib/function/
lib/include/
lib/include/fn_specs/
lib/include/skills/
lib/info/
lib/inherit/base/
lib/log/
lib/manuals/312/
lib/news/
lib/obj/party/
lib/objects/components/
lib/open/
lib/open/library/
lib/open/party/
lib/players/
lib/players/zilanthius/
lib/room/
lib/room/city/arena/
lib/room/city/creator/
lib/room/city/garden/monst/
lib/room/city/obj/
lib/room/city/shop/
lib/room/death/
lib/room/registry/
lib/secure/
lib/secure/UDP_CMD_DIR/
lib/skills/
lib/skills/fighter/
lib/skills/thief/
lib/usr/
lib/usr/creators/
lib/usr/players/
/* shadow in conjunction with chair, when in same room, the player is
   in effect invisible. 
 */

inherit "obj/shadows/shadow";

#define CAP (string)who->query_cap_name()

object where, who, chair;


void shadow_short() {
  where = environment(previous_object());
  chair = previous_object();
  who   = this_player();
  shadow_object(who);
}

string short(status wiz) {
  if(chair) chair->resolve_sitters();
  if(!chair || !chair->query_sitters(CAP)) {
    destruct(this_object());
    return (string)who->short(wiz);
  }
  if(environment(this_player()) == where) return 0;
  return (string)who->short(wiz);
}