mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
* server/EntityFactory.h, server/EntityFactory.cpp: Add a handler for objects in rules files. * rulesets/TaskScript.h, rulesets/TaskScript.cpp: Task class which delegates functionality to a script object. Basically just a stub at this point. * server/TaskFactory.h server/TaskFactory.cpp: Factory class for creating instances of Task classes.
32 lines
613 B
C++
32 lines
613 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) 2005 Alistair Riddoch
|
|
|
|
#include "server/TaskFactory.h"
|
|
|
|
#include "server/ScriptFactory.h"
|
|
|
|
TaskFactory::TaskFactory()
|
|
{
|
|
}
|
|
|
|
TaskFactory::~TaskFactory()
|
|
{
|
|
}
|
|
|
|
TaskScriptFactory::TaskScriptFactory() : m_scriptFactory(0)
|
|
{
|
|
}
|
|
|
|
TaskScriptFactory::~TaskScriptFactory()
|
|
{
|
|
if (m_scriptFactory != 0) {
|
|
delete m_scriptFactory;
|
|
}
|
|
}
|
|
|
|
Task * TaskScriptFactory::newTask(Character & chr)
|
|
{
|
|
// Create the task, and use its script to add a script
|
|
return 0;
|
|
}
|