aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/items
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/items')
-rw-r--r--engines/pink/items/sequence_item.cpp72
-rw-r--r--engines/pink/items/sequence_item.h48
-rw-r--r--engines/pink/items/sequence_item_default_action.cpp35
-rw-r--r--engines/pink/items/sequence_item_default_action.h37
-rw-r--r--engines/pink/items/sequence_item_leader.cpp36
-rw-r--r--engines/pink/items/sequence_item_leader.h39
6 files changed, 0 insertions, 267 deletions
diff --git a/engines/pink/items/sequence_item.cpp b/engines/pink/items/sequence_item.cpp
deleted file mode 100644
index ade4e40e9d..0000000000
--- a/engines/pink/items/sequence_item.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#include <common/debug.h>
-#include <engines/pink/sequences/sequence.h>
-#include <engines/pink/sequences/sequencer.h>
-#include <engines/pink/actions/action.h>
-#include "sequence_item.h"
-#include "../archive.h"
-#include "sequence_item_leader.h"
-#include "sequence_item_default_action.h"
-#include "../page.h"
-#include "../actors/actor.h"
-
-namespace Pink {
-
-void SequenceItem::deserialize(Archive &archive) {
- archive >> _actorName >> _actionName;
- if (!dynamic_cast<SequenceItemLeader*>(this) && !dynamic_cast<SequenceItemDefaultAction*>(this))
- debug("\t\tSequenceItem: _actor = %s, _action = %s", _actorName.c_str(), _actionName.c_str());
-}
-
-const Common::String &SequenceItem::getActor() const {
- return _actorName;
-}
-
-const Common::String &SequenceItem::getAction() const {
- return _actionName;
-}
-
-bool SequenceItem::execute(int unk, Sequence *sequence, bool unk2) {
- Actor *actor;
- Action *action;
- if (!(actor = sequence->_sequencer->_page->findActor(_actorName)) ||
- !(action = actor->findAction(_actionName))) {
- return false;
- }
-
- actor->setAction(action, unk2);
- Common::Array<SequenceActorState> &states = sequence->_context->_states;
- for (int i = 0; i < sequence->_context->_states.size(); ++i) {
- if (states[i]._actorName == _actorName){
- states[i]._unk = unk;
- sequence->_context->_actor = dynamic_cast<SequenceItemLeader*>(this) ?
- actor : sequence->_context->_actor;
- // TODO change to virt call
- }
- }
-
- return true;
-}
-
-} // End of namespace Pink \ No newline at end of file
diff --git a/engines/pink/items/sequence_item.h b/engines/pink/items/sequence_item.h
deleted file mode 100644
index 2b6d2b9728..0000000000
--- a/engines/pink/items/sequence_item.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef PINK_SEQUENCE_ITEM_H
-#define PINK_SEQUENCE_ITEM_H
-
-#include <engines/pink/object.h>
-
-namespace Pink {
-
-class Sequence;
-
-class SequenceItem : public Object {
-public:
- virtual void deserialize(Archive &archive);
-
- const Common::String &getActor() const;
- const Common::String &getAction() const;
-
- virtual bool execute(int unk, Sequence *sequence, bool unk2);
-
-protected:
- Common::String _actorName;
- Common::String _actionName;
-};
-
-}
-
-#endif
diff --git a/engines/pink/items/sequence_item_default_action.cpp b/engines/pink/items/sequence_item_default_action.cpp
deleted file mode 100644
index 3428639f10..0000000000
--- a/engines/pink/items/sequence_item_default_action.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#include <engines/pink/archive.h>
-#include <common/debug.h>
-#include "sequence_item_default_action.h"
-
-namespace Pink {
-
-void Pink::SequenceItemDefaultAction::deserialize(Archive &archive) {
- SequenceItem::deserialize(archive);
- debug("\t\tSequenceItemDefaultAction: _actor = %s, _action = %s",
- _actorName.c_str(), _actionName.c_str());
-}
-
-} // End of namespace Pink \ No newline at end of file
diff --git a/engines/pink/items/sequence_item_default_action.h b/engines/pink/items/sequence_item_default_action.h
deleted file mode 100644
index 99096738b5..0000000000
--- a/engines/pink/items/sequence_item_default_action.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef PINK_SEQUENCE_ITEM_DEFAULT_ACTION_H
-#define PINK_SEQUENCE_ITEM_DEFAULT_ACTION_H
-
-#include "sequence_item.h"
-
-namespace Pink {
-
-class SequenceItemDefaultAction : public SequenceItem {
-public:
- virtual void deserialize(Archive &archive);
-};
-
-} // End of namespace Pink
-
-#endif
diff --git a/engines/pink/items/sequence_item_leader.cpp b/engines/pink/items/sequence_item_leader.cpp
deleted file mode 100644
index 5e19fb4317..0000000000
--- a/engines/pink/items/sequence_item_leader.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#include <engines/pink/archive.h>
-#include <common/debug.h>
-#include "sequence_item_leader.h"
-
-namespace Pink {
-
-
-void Pink::SequenceItemLeader::deserialize(Archive &archive) {
- SequenceItem::deserialize(archive);
- debug("\t\tSequenceItemLeader: _actor = %s, _action = %s",
- _actorName.c_str(), _actionName.c_str());
-}
-
-} //End of namespace Pink \ No newline at end of file
diff --git a/engines/pink/items/sequence_item_leader.h b/engines/pink/items/sequence_item_leader.h
deleted file mode 100644
index b5506ad64d..0000000000
--- a/engines/pink/items/sequence_item_leader.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef PINK_SEQUENCE_ITEM_LEADER_H
-#define PINK_SEQUENCE_ITEM_LEADER_H
-
-#include "sequence_item.h"
-
-namespace Pink {
-
-class SequenceItemLeader : public SequenceItem {
-public:
- virtual void deserialize(Archive &archive);
-
-private:
-};
-
-}
-
-#endif