X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftrigger%2Fsecretarea_trigger.h;h=71c4d17d9616d72581d63612176a92cf400859b1;hb=137c4c25840c36661c8b68b8eaba77afccd76199;hp=d8fad64fc8d2ec6996543500967cd0347d8a2716;hpb=3f1a54cc4a2b8deb8ebb31061a00ffcec5fb3169;p=supertux.git diff --git a/src/trigger/secretarea_trigger.h b/src/trigger/secretarea_trigger.h index d8fad64fc..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,23 +24,23 @@ #include "serializable.h" #include "resources.h" #include "video/drawing_context.h" -#include "app/globals.h" #include "timer.h" class SecretAreaTrigger : public TriggerBase, public Serializable { public: - SecretAreaTrigger(LispReader& reader); - SecretAreaTrigger(const Vector& pos); + 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