X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftrigger%2Fsecretarea_trigger.h;h=71c4d17d9616d72581d63612176a92cf400859b1;hb=137c4c25840c36661c8b68b8eaba77afccd76199;hp=61ce61ccf25e99ed70b7cb6beb628c994fe77677;hpb=958cad765cf063c9cc3722c3e694c9827ae502a4;p=supertux.git diff --git a/src/trigger/secretarea_trigger.h b/src/trigger/secretarea_trigger.h index 61ce61ccf..71c4d17d9 100644 --- a/src/trigger/secretarea_trigger.h +++ b/src/trigger/secretarea_trigger.h @@ -1,3 +1,22 @@ +// $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. #ifndef __SECRETAREA_TRIGGER_H__ #define __SECRETAREA_TRIGGER_H__ @@ -5,25 +24,23 @@ #include "serializable.h" #include "resources.h" #include "video/drawing_context.h" -#include "app/globals.h" #include "timer.h" -#define MESSAGE_TIME 3 - class SecretAreaTrigger : public TriggerBase, public Serializable { public: - SecretAreaTrigger(LispReader& reader); - SecretAreaTrigger(const Vector& pos, const std::string& sequence); + SecretAreaTrigger(const lisp::Lisp& reader); + SecretAreaTrigger(const Rect& area); ~SecretAreaTrigger(); - void write(LispWriter& writer); + void write(lisp::Writer& writer); void event(Player& player, EventType type); void draw(DrawingContext& context); private: std::string message; - Timer2 message_timer; + Timer message_timer; + bool message_displayed; }; #endif