src/badguy/owl.hpp

Go to the documentation of this file.
00001 //  SuperTux
00002 //  Copyright (C) 2008 Wolfgang Becker <uafr@gmx.de>
00003 //  Copyright (C) 2010 Florian Forster <supertux at octo.it>
00004 //
00005 //  This program is free software: you can redistribute it and/or modify
00006 //  it under the terms of the GNU General Public License as published by
00007 //  the Free Software Foundation, either version 3 of the License, or
00008 //  (at your option) any later version.
00009 //
00010 //  This program is distributed in the hope that it will be useful,
00011 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 //  GNU General Public License for more details.
00014 //
00015 //  You should have received a copy of the GNU General Public License
00016 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 
00018 #ifndef HEADER_SUPERTUX_BADGUY_OWL_HPP
00019 #define HEADER_SUPERTUX_BADGUY_OWL_HPP
00020 
00021 #include "badguy/badguy.hpp"
00022 #include "object/portable.hpp"
00023 
00024 class Owl : public BadGuy
00025 {
00026 public:
00027   Owl(const Reader& reader);
00028   Owl(const Vector& pos, Direction d);
00029 
00030   void initialize();
00031   void collision_solid(const CollisionHit& hit);
00032 
00033 protected:
00034   bool is_above_player (void);
00035   void active_update (float elapsed_time);
00036   bool collision_squished(GameObject& object);
00037 
00038   std::string carried_obj_name;
00039   Portable *carried_object;
00040 
00041 private:
00042   Owl(const Owl&);
00043   Owl& operator=(const Owl&);
00044 };
00045 
00046 #endif /* HEADER_SUPERTUX_BADGUY_OWL_HPP */
00047 
00048 /* EOF */

Generated on Mon Jun 9 03:38:17 2014 for SuperTux by  doxygen 1.5.1