/
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/
#ifndef EXIT_CON_H
#define EXIT_CON_H

string convert_exit_name (string str) {    
   if(!str) return "";
   str = lower_case(str);    
   if (str == "u") return "up";    
   if (str == "d") return "down";    
   if (str == "n") return "north";    
   if (str == "s") return "south";    
   if (str == "w") return "west";    
   if (str == "e") return "east";    
   if (str == "nw") return "northwest";    
   if (str == "ne") return "northeast";    
   if (str == "sw") return "southwest";    
   if (str == "se") return "southeast";    
   return str;    
}  
  

string convert_to_brief(string str) {  
  if(!str) return ""; 
  str = lower_case(str); 
  if(str == "up")    return "u";  
  if(str == "down")  return "d";  
  if(str == "north") return "n";  
  if(str == "south") return "s";  
  if(str == "east")  return "e";  
  if(str == "west")  return "w";  
  if(str == "northwest") return "nw";  
  if(str == "northeast") return "ne";  
  if(str == "southwest") return "sw";  
  if(str == "southeast") return "se";  
  return str;  
}  

string reverse_exit(string str) {
  if(!str) return ""; 
  str = lower_case(str); 
  if(str == "up")    return "down";  
  if(str == "down")  return "up";  
  if(str == "north") return "south";  
  if(str == "south") return "north";  
  if(str == "east")  return "west";  
  if(str == "west")  return "east";  
  if(str == "northwest") return "southeast";  
  if(str == "northeast") return "southwest";  
  if(str == "southwest") return "northeast";  
  if(str == "southeast") return "northwest";  
  return str;  
}  
  


#endif /* EXIT_CON_H */