/* ....[@@@..[@@@..............[@.................. MUD++ is a written from ....[@..[@..[@..[@..[@..[@@@@@....[@......[@.... scratch multi-user swords and ....[@..[@..[@..[@..[@..[@..[@..[@@@@@..[@@@@@.. sorcery game written in C++. ....[@......[@..[@..[@..[@..[@....[@......[@.... This server is an ongoing ....[@......[@..[@@@@@..[@@@@@.................. development project. All ................................................ contributions are welcome. ....Copyright(C).1995.Melvin.Smith.............. Enjoy. ------------------------------------------------------------------------------ Melvin Smith (aka Fusion) msmith@hom.net MUD++ development mailing list mudpp@van.ml.org ------------------------------------------------------------------------------ exit.cc */ #include "config.h" #include "exit.h" Room * lookupRoom( const Index & ); const bitType exit_bits[] = { {"simple", EXIT_SIMPLE }, {"door", EXIT_IS_DOOR }, {"closed", EXIT_CLOSED }, {"locked", EXIT_LOCKED }, {"bashed", EXIT_BASHED }, {"no-pick", EXIT_NO_PICK }, {"no-lock", EXIT_NO_LOCK }, {"no-bash", EXIT_NO_BASH }, {"no-mage", EXIT_NO_MAGE }, {"no-cleric", EXIT_NO_CLERIC }, {"no-thief", EXIT_NO_THIEF }, {"no-warrior", EXIT_NO_WARRIOR }, {"no-mortal", EXIT_NO_MORTAL }, {"hidden", EXIT_HIDDEN }, {"trap", EXIT_TRAP }, {"slam", EXIT_SLAM }, {0, 0 } }; void Exit::reset() { memcpy( flags, original_flags, MAX_EXIT_BIT_FIELDS * sizeof(flags[0]) ); } void Exit::hardLink( ) { room_ptr = lookupRoom( room_index ); }