editobj.cc
mud++/src/editobj.cc · 1.7 KB
From the archive mud++0.1.tar.gz
Download the archive « Back to the archive contents
/*
....[@@@..[@@@..............[@.................. 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@falcon.mercer.peachnet.edu
MUD++ development mailing list mudpp-list@spice.com
------------------------------------------------------------------------------
editobj.cc
*/
#include "string.h"
#include "llist.h"
#include "index.h"
#include "indexable.h"
#include "server.h"
#include "bit.h"
#include "spell.h"
#include "edit.h"
void ObjectEditor::command( String & arg )
{
String str;
String arg1;
String arg2;
Area *area;
if( !obj )
{
pc->out( "No object to edit.\n\r" );
return;
}
if( arg == "\n" )
{
// Display object and return
str << "\n\r"
<< "Keywords: " << obj->getName() << "\n\r"
<< "Shortdesc: " << obj->getShort() << "\n\r"
<< "Longdesc: " << obj->getLong() << "\n\r"
// << "Index: " << obj->getIndex().asString() << "\n\r"
<< "Type: " << obj->typeName() << "\n\r"
<< "Cost: " << obj->getCost() << "\n\r"
<< "Spell1: " << obj->getSpell1()->getName() << "\n\r"
<< "Spell2: " << obj->getSpell2()->getName() << "\n\r"
<< "Spell3: " << obj->getSpell3()->getName() << "\n\r"
<< "Spell4: " << obj->getSpell4()->getName() << "\n\r"
;
pc->out( str );
return;
}
}