ldmud-3.2.9/doc/
ldmud-3.2.9/doc/efun/
ldmud-3.2.9/mud/
ldmud-3.2.9/mud/heaven7/
ldmud-3.2.9/mud/heaven7/lib/
ldmud-3.2.9/mud/lp-245/
ldmud-3.2.9/mud/lp-245/banish/
ldmud-3.2.9/mud/lp-245/doc/
ldmud-3.2.9/mud/lp-245/doc/examples/
ldmud-3.2.9/mud/lp-245/doc/sefun/
ldmud-3.2.9/mud/lp-245/log/
ldmud-3.2.9/mud/lp-245/obj/Go/
ldmud-3.2.9/mud/lp-245/players/lars/
ldmud-3.2.9/mud/lp-245/room/death/
ldmud-3.2.9/mud/lp-245/room/maze1/
ldmud-3.2.9/mud/lp-245/room/sub/
ldmud-3.2.9/mud/lp-245/secure/
ldmud-3.2.9/mud/morgengrauen/
ldmud-3.2.9/mud/morgengrauen/lib/
ldmud-3.2.9/mud/sticklib/
ldmud-3.2.9/mud/sticklib/src/
ldmud-3.2.9/mudlib/uni-crasher/
ldmud-3.2.9/pkg/
ldmud-3.2.9/pkg/debugger/
ldmud-3.2.9/pkg/diff/
ldmud-3.2.9/pkg/misc/
ldmud-3.2.9/src/autoconf/
ldmud-3.2.9/src/bugs/
ldmud-3.2.9/src/bugs/MudCompress/
ldmud-3.2.9/src/bugs/b-020916-files/
ldmud-3.2.9/src/bugs/doomdark/
ldmud-3.2.9/src/bugs/ferrycode/ferry/
ldmud-3.2.9/src/bugs/ferrycode/obj/
ldmud-3.2.9/src/bugs/psql/
ldmud-3.2.9/src/done/
ldmud-3.2.9/src/done/order_alist/
ldmud-3.2.9/src/done/order_alist/obj/
ldmud-3.2.9/src/done/order_alist/room/
ldmud-3.2.9/src/gcc/
ldmud-3.2.9/src/gcc/2.7.0/
ldmud-3.2.9/src/gcc/2.7.1/
ldmud-3.2.9/src/hosts/
ldmud-3.2.9/src/hosts/GnuWin32/
ldmud-3.2.9/src/hosts/amiga/NetIncl/
ldmud-3.2.9/src/hosts/amiga/NetIncl/netinet/
ldmud-3.2.9/src/hosts/amiga/NetIncl/sys/
ldmud-3.2.9/src/hosts/i386/
ldmud-3.2.9/src/hosts/msdos/byacc/
ldmud-3.2.9/src/hosts/msdos/doc/
ldmud-3.2.9/src/hosts/os2/
ldmud-3.2.9/src/hosts/win32/
ldmud-3.2.9/src/util/
ldmud-3.2.9/src/util/erq/
ldmud-3.2.9/src/util/indent/hosts/next/
ldmud-3.2.9/src/util/xerq/
ldmud-3.2.9/src/util/xerq/lpc/
ldmud-3.2.9/src/util/xerq/lpc/www/
#include <mudlib.h>
#include <ships.h>

inherit SHIP;

void reset(int arg) {
    if(!is_clone(this_object())) return;
    ::reset(arg);
    if (arg) return;

    set_alias("galley");
    add_alias("lateen galley");

    //Setup defaults in case vars don't restore
    set_name("unknown Galley");
    reset_short("mysterious Galley");
    set_main_long("\
The lateen galley is a graceful ship, with gently curved lines\n\
and picturesque twin triangular sails. It measures about 75\n\
feet from prow to stern, slightly larger than a cog, but not\n\
as grand as the heavy ships. The waves cascade across its\n\
prow, rendering it even more beautiful.\n");

    //Give it rooms
    add_room("aftdeck", SHIP_ROOMS + "galley_deck");
    add_room("foredeck", SHIP_ROOMS + "galley_foredeck");
    add_room("bridge", SHIP_ROOMS + "galley_bridge");
    add_room("prow", SHIP_ROOMS + "galley_prow");
    add_room("afthall", SHIP_ROOMS + "galley_hall");
    add_room("forehall", SHIP_ROOMS + "galley_forehall");
    add_room("cabin", SHIP_ROOMS + "galley_cabin");
    add_room("crew", SHIP_ROOMS + "galley_crew");
    add_room("cargo1", SHIP_ROOMS + "galley_cargo1");
    add_room("cargo2", SHIP_ROOMS + "galley_cargo2");
    add_room("cargo3", SHIP_ROOMS + "galley_cargo3");
    add_room("cargo4", SHIP_ROOMS + "galley_cargo4");
    add_room("crow's nest", SHIP_ROOMS + "galley_nest");

    //Make some rooms visible from outside
    add_room_look(({"deck","aftdeck"}),"aftdeck");
    add_room_look("foredeck","foredeck");
    add_room_look(({"nest","crow's nest"}),"crow's nest");
    add_room_look("bridge","bridge");
    add_room_look("prow","prow");

    //Add a few extra looks to the ship
    add_extra_look(({"mast","masts"}),"\
The masts sport large triangular sails that gracefully catch\n\
the wind. Both look quite strong.\n");
    add_extra_look(({"sail","sails"}),"\
The sails are shaped like a triangle and hang from the two masts\n\
of the ship. Their shape is what allows the lateen galley to\n\
sail effectively in nearly any direction, regardless of the\n\
wind. They billow now, drifiting on the ocean breeze.\n");

    set_enter_room("aftdeck");
    set_bridge(find_room("bridge"));

    //Set default messages (reset in init_ship)
    set_arrival_msg("The galley arrives.");
    set_depart_msg("The galley sails swiftly");
    set_enter_messages(({"You climb onboard the galley","boards the galley",
      "comes aboard the galley"}));
    set_deboard_messages(({"You disembark the galley","leaves the galley",
      "disembarks from the galley"}));
    init_vehicle();
}

//Overloads of virtual functions in parent
string query_ship_class() { return "lateen galley"; }
string query_ship_arrive() { return "sails gracefully in";}
string query_ship_depart() { return "tacks out to the";}