2001-05-06 23:51:37 +00:00
|
|
|
// This file may be redistributed and modified only under the terms of
|
|
|
|
|
// the GNU General Public License (See COPYING for details).
|
|
|
|
|
// Copyright (C) 2000,2001 Alistair Riddoch
|
|
|
|
|
|
2006-10-26 00:48:00 +00:00
|
|
|
|
2003-03-07 00:22:12 +00:00
|
|
|
#include "common/operations.h"
|
|
|
|
|
|
2001-05-06 23:51:37 +00:00
|
|
|
#include <Atlas/Objects/Operation/Sight.h>
|
|
|
|
|
|
|
|
|
|
#include "DumbSkill.h"
|
|
|
|
|
|
2003-08-07 23:03:26 +00:00
|
|
|
using Atlas::Message::Element;
|
2001-05-06 23:51:37 +00:00
|
|
|
|
|
|
|
|
oplist DumbSkill::action(const std::string & skill, const RootOperation & op)
|
|
|
|
|
{
|
2004-01-22 03:03:07 +00:00
|
|
|
RootOperation * s = new Sight();
|
2003-08-07 23:03:26 +00:00
|
|
|
s->setArgs(Element::ListType(1,op.asObject()));
|
2001-05-06 23:51:37 +00:00
|
|
|
return oplist(1,s);
|
|
|
|
|
}
|