mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
* 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.
47 lines
787 B
C++
47 lines
787 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/Entity.h"
|
|
#include "rulesets/Character.h"
|
|
|
|
#include <Atlas/Objects/Operation/RootOperation.h>
|
|
|
|
#include <iostream>
|
|
|
|
#include <cassert>
|
|
|
|
int main()
|
|
{
|
|
int ret = 0;
|
|
|
|
Operation op;
|
|
OpVector res;
|
|
|
|
{
|
|
Task * task;
|
|
|
|
if (0) {
|
|
task->TickOperation(op, res);
|
|
}
|
|
}
|
|
|
|
Entity ent1("1"), ent2("2");
|
|
Character chr("3");
|
|
|
|
{
|
|
Fell fell(chr, ent1, ent2);
|
|
|
|
assert(!fell.obsolete());
|
|
|
|
fell.TickOperation(op, res);
|
|
|
|
fell.irrelevant();
|
|
|
|
assert(fell.obsolete());
|
|
}
|
|
|
|
return ret;
|
|
}
|