X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftrigger%2Fsequence_trigger.cpp;h=28c4b540f5d12506543fc246a84f47d5b6a404a2;hb=c0093d25093395cb62fc2526ab42be65a9f015b8;hp=91f9c98685dc36d2917b8a2457489a79e399ec43;hpb=ef57479f613b900b73eba8e8f4d026aae0de25cc;p=supertux.git diff --git a/src/trigger/sequence_trigger.cpp b/src/trigger/sequence_trigger.cpp index 91f9c9868..28c4b540f 100644 --- a/src/trigger/sequence_trigger.cpp +++ b/src/trigger/sequence_trigger.cpp @@ -1,9 +1,30 @@ +// $Id$ +// +// SuperTux +// Copyright (C) 2005 Matthias Braun +// +// 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., 59 Temple Place - Suite 330, Boston, MA +// 02111-1307, USA. + #include #include "sequence_trigger.h" -#include "gameloop.h" +#include "game_session.h" #include "lisp/lisp.h" #include "lisp/writer.h" +#include "object_factory.h" SequenceTrigger::SequenceTrigger(const lisp::Lisp& reader) { @@ -49,3 +70,5 @@ SequenceTrigger::event(Player& , EventType type) GameSession::current()->start_sequence(sequence_name); } } + +IMPLEMENT_FACTORY(SequenceTrigger, "sequencetrigger")