cyphesis/rulesets/skills/DumbSkill.cpp

20 lines
505 B
C++
Raw Permalink Normal View History

// 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
#include "common/operations.h"
#include <Atlas/Objects/Operation/Sight.h>
#include "DumbSkill.h"
using Atlas::Message::Element;
oplist DumbSkill::action(const std::string & skill, const RootOperation & op)
{
RootOperation * s = new Sight();
s->setArgs(Element::ListType(1,op.asObject()));
return oplist(1,s);
}