]> Dogcows Code - chaz/yoink/blobdiff - src/moof/entity.hh
remove some unused stlplus modules
[chaz/yoink] / src / moof / entity.hh
index f95a94cc1fba513549ac4e56fd6ec0e8fa17dbb0..92b4dc5dd7b074b747020d3a7fc807c7da49ebc5 100644 (file)
@@ -1,13 +1,11 @@
 
-/*]  Copyright (c) 2009-2010, Charles McGarvey  [**************************
+/*]  Copyright (c) 2009-2011, Charles McGarvey  [*****************************
 **]  All rights reserved.
 *
-* vi:ts=4 sw=4 tw=75
-*
 * Distributable under the terms and conditions of the 2-clause BSD license;
 * see the file COPYING for a complete text of the license.
 *
-**************************************************************************/
+*****************************************************************************/
 
 #ifndef _MOOF_ENTITY_HH_
 #define _MOOF_ENTITY_HH_
 namespace moof {
 
 
+// forward declarations
 class frustum;
 
-
-class entity;
-
-/**
- * Entity pointer.
- */
-typedef boost::shared_ptr<entity> entity_ptr;
-
-
 /**
  * Interface for game objects that can be drawn to the screen and have a
  * specified volume (take up space).
@@ -57,7 +47,8 @@ public:
         * timestep.
         * \param frustum The camera frustum for determining visibility.
         */
-       virtual void draw_if_visible(scalar alpha, const frustum& frustum) const
+       virtual void
+       draw_if_visible(scalar alpha, const frustum& frustum) const
        {
                if (is_visible(frustum)) draw(alpha);
        }
@@ -74,7 +65,6 @@ public:
                return sphere_.is_visible(frustum) && aabb_.is_visible(frustum);
        }
 
-
        /**
         * Get the axis-aligned bounding box surrounding the entity.
         * \return The AABB.
@@ -92,13 +82,14 @@ public:
                return sphere_;
        }
 
-
 protected:
 
-       moof::aabb3             aabb_;
+       moof::aabb3     aabb_;
        moof::sphere3   sphere_;
 };
 
+typedef boost::shared_ptr<entity> entity_ptr;
+
 
 } // namespace moof
 
This page took 0.017923 seconds and 4 git commands to generate.