cyphesis/rulesets/Fell.cpp
Al Riddoch 7273cb19cc 2004-12-30 Al Riddoch <alriddoch@zepler.org>
* common/const.h: Make the coments doxygen compatable.

	* rulesets/Character.cpp: Add comments to document tool use.

	* rulesets/Fell.cpp, rulesets/Fell.h, rulesets/Task.cpp,
	  rulesets/Task.h: Add reference to Character to base Task class,
	  and setup() method for task initiation.

	* tests/Tasktest.cpp: Update task test for new changes.

	* tests/randomtest.cpp, tests/consttest.cpp: New tests for random
	  and const headers.
2004-12-30 20:01:33 +00:00

36 lines
873 B
C++

// This file may be redistributed and modified only under the terms of
// the GNU General Public License (See COPYING for details).
// Copyright (C) 2004 Alistair Riddoch
#include "rulesets/Fell.h"
#include "rulesets/Character.h"
#include "common/Tick.h"
using Atlas::Objects::Operation::Tick;
/// \brief Constructor for Fell task
///
/// @param chr Character peforming the task
/// @param tool Entity to be used as a tool for this task
/// @param target Entity that is the target for this task
Fell::Fell(Character & chr, Entity & tool, Entity & target) : Task(chr)
{
}
Fell::~Fell()
{
}
// FIXME Should this be what the default implemntation of this method does?
void Fell::setup(OpVector & res)
{
Tick * t = new Tick();
t->setAttr("sub_to", "task");
t->setTo(m_character.getId());
}
void Fell::TickOperation(const Operation & op, OpVector & res)
{
}