aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/handlers')
-rw-r--r--engines/pink/handlers/handler.cpp44
-rw-r--r--engines/pink/handlers/handler.h47
-rw-r--r--engines/pink/handlers/handler_sequences.cpp43
-rw-r--r--engines/pink/handlers/handler_sequences.h41
-rw-r--r--engines/pink/handlers/handler_start_page.cpp38
-rw-r--r--engines/pink/handlers/handler_start_page.h38
6 files changed, 0 insertions, 251 deletions
diff --git a/engines/pink/handlers/handler.cpp b/engines/pink/handlers/handler.cpp
deleted file mode 100644
index d42d01510c..0000000000
--- a/engines/pink/handlers/handler.cpp
+++ /dev/null
@@ -1,44 +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 "handler.h"
-#include "../archive.h"
-#include "../side_effects/side_effect.h"
-
-namespace Pink {
-
-void Handler::deserialize(Archive &archive) {
- assert(archive.readCount() == 0); // intro has zero conditions, so skip;
- archive >> _sideEffects;
-}
-
-bool Handler::initConditions(LeadActor *actor) {
- return true;
-}
-
-void Handler::initSideEffects(LeadActor *actor) {
- for (int i = 0; i < _sideEffects.size(); ++i) {
- _sideEffects[i]->init(actor);
- }
-}
-
-} // End of namespace Pink
diff --git a/engines/pink/handlers/handler.h b/engines/pink/handlers/handler.h
deleted file mode 100644
index beca2ffa65..0000000000
--- a/engines/pink/handlers/handler.h
+++ /dev/null
@@ -1,47 +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_HANDLER_H
-#define PINK_HANDLER_H
-
-#include <engines/pink/object.h>
-#include <common/array.h>
-
-namespace Pink {
-
-class SideEffect;
-class LeadActor;
-
-class Handler : public Object {
-public:
- virtual void deserialize(Archive &archive);
- bool initConditions(LeadActor *actor);
- void initSideEffects(LeadActor *actor);
-
-protected:
- //_conditions
- Common::Array<SideEffect*> _sideEffects;
-};
-
-} // End of namespace Pink
-
-#endif
diff --git a/engines/pink/handlers/handler_sequences.cpp b/engines/pink/handlers/handler_sequences.cpp
deleted file mode 100644
index c785883210..0000000000
--- a/engines/pink/handlers/handler_sequences.cpp
+++ /dev/null
@@ -1,43 +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 "handler_sequences.h"
-#include <engines/pink/sequences/sequencer.h>
-#include "../archive.h"
-#include "../actors/lead_actor.h"
-
-namespace Pink {
-
-void HandlerSequences::deserialize(Archive &archive) {
- Handler::deserialize(archive);
- archive >> _sequences;
-}
-
-void HandlerSequences::initSequence(LeadActor *actor) {
- initSideEffects(actor);
-
- Sequencer *sequencer = actor->getSequencer();
- Sequence *sequence = sequencer->findSequence(_sequences[0]); //actually we must pick random sequence
- sequencer->authorSequence(sequence, 0);
-}
-
-} // End of namespace Pink \ No newline at end of file
diff --git a/engines/pink/handlers/handler_sequences.h b/engines/pink/handlers/handler_sequences.h
deleted file mode 100644
index b55d81ce38..0000000000
--- a/engines/pink/handlers/handler_sequences.h
+++ /dev/null
@@ -1,41 +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_HANDLER_SEQUENCES_H
-#define PINK_HANDLER_SEQUENCES_H
-
-#include <engines/pink/utils.h>
-#include "handler.h"
-
-namespace Pink {
-
-class HandlerSequences : public Handler {
-public:
- virtual void deserialize(Archive &archive);
- void initSequence(LeadActor *actor);
-
-protected:
- StringArray _sequences;
-};
-
-} // End of namespace Pink
-
-#endif
diff --git a/engines/pink/handlers/handler_start_page.cpp b/engines/pink/handlers/handler_start_page.cpp
deleted file mode 100644
index 8fef49eee2..0000000000
--- a/engines/pink/handlers/handler_start_page.cpp
+++ /dev/null
@@ -1,38 +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 "handler_start_page.h"
-#include <common/debug.h>
-#include "../archive.h"
-
-namespace Pink {
-
-void HandlerStartPage::deserialize(Archive &archive) {
- debug("HandlerStartPage: ");
- HandlerSequences::deserialize(archive);
-
- for (uint i = 0; i < _sequences.size(); ++i) {
- debug("\t%s", _sequences[i].c_str());
- }
-}
-
-} // End of namespace Pink \ No newline at end of file
diff --git a/engines/pink/handlers/handler_start_page.h b/engines/pink/handlers/handler_start_page.h
deleted file mode 100644
index a273e1e354..0000000000
--- a/engines/pink/handlers/handler_start_page.h
+++ /dev/null
@@ -1,38 +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_HANDLER_START_PAGE_H
-#define PINK_HANDLER_START_PAGE_H
-
-#include "handler.h"
-#include "handler_sequences.h"
-
-namespace Pink {
-
-class HandlerStartPage : public HandlerSequences {
-public:
- virtual void deserialize(Archive &archive);
-};
-
-} // End of namespace Pink
-
-#endif