DrawableBuilding Class

Superclasses:

DrawableObject

Other Subclasses: DrawableBSP, DrawableTrail, Drawable2D, DrawableBridge ,   DrawablePlatform ,   DrawablePoint,

Implementation: <inline>

DrawableBSP

Subclasses:DrawableShadowed , DrawablePuffDawablePoled DrawableGroundvehicle  and DrawableBuilding


DrawableBuilding


 public:
        DrawableBuilding( int type, Tpoint *pos, float heading, float scale = 1.0f );
        virtual ~DrawableBuilding()     {};

        virtual void Draw( class RenderOTW *renderer, int LOD );

  protected:
        int             previousLOD;

#ifdef USE_SH_POOLS
  public:
        // Overload new/delete to use a SmartHeap fixed size pool
        void *operator new(size_t size) { ShiAssert( size == sizeof(DrawableBuilding) ); return MemAllocFS(pool);       };
        void operator delete(void *mem) { if (mem) MemFreeFS(mem); };
        static void InitializeStorage() { pool = MemPoolInitFS( sizeof(DrawableBuilding), 50, 0 ); };
        static void ReleaseStorage()    { MemPoolFree( pool ); };
        static MEM_POOL pool;
#endif