]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Entity.hh
the massive refactoring effort
[chaz/yoink] / src / Moof / Entity.hh
diff --git a/src/Moof/Entity.hh b/src/Moof/Entity.hh
deleted file mode 100644 (file)
index 4e71466..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-
-/*]  Copyright (c) 2009-2010, 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_
-
-#include <boost/shared_ptr.hpp>
-
-#include <Moof/Aabb.hh>
-#include <Moof/Cullable.hh>
-#include <Moof/Drawable.hh>
-#include <Moof/Sphere.hh>
-
-
-namespace Mf {
-
-
-class Frustum;
-
-
-/**
- * Interface for game objects that can be drawn to the screen and have a
- * specified volume (take up space).
- */
-
-class Entity;
-typedef boost::shared_ptr<Entity> EntityP;
-
-
-class Entity : public Cullable, public Drawable
-{
-protected:
-
-       Aabb<3>         mAabb;
-       Sphere<3>       mSphere;
-
-public:
-
-       virtual ~Entity() {}
-
-       virtual void drawIfVisible(Scalar alpha, const Frustum& frustum) const
-       {
-               if (isVisible(frustum)) draw(alpha);
-       }
-
-       virtual bool isVisible(const Frustum& frustum) const
-       {
-               return mSphere.isVisible(frustum) && mAabb.isVisible(frustum);
-       }
-
-       const Aabb<3>& getAabb() const
-       {
-               return mAabb;
-       }
-
-       const Sphere<3>& getSphere() const
-       {
-               return mSphere;
-       }
-};
-
-
-} // namespace Mf
-
-#endif // _MOOF_ENTITY_HH_
-
This page took 0.018251 seconds and 4 git commands to generate.