eWallView Class Reference

#include <eWall.h>

Inheritance diagram for eWallView:

Inheritance graph
[legend]
Collaboration diagram for eWallView:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 eWallView ()
 ~eWallView ()
void Set (int view, eWall *mw)
REAL Value ()
void SetValue (REAL v)
eWallBelongs ()

Protected Member Functions

virtual tHeapBaseHeap () const

Protected Attributes

int viewer

Friends

class eWall


Detailed Description

Definition at line 61 of file eWall.h.


Constructor & Destructor Documentation

eWallView::eWallView (  )  [inline]

Definition at line 72 of file eWall.h.

00072 {}

eWallView::~eWallView (  ) 

Definition at line 42 of file eWall.cpp.

References tHeapElement::RemoveFromHeap().

00043 {
00044     RemoveFromHeap();
00045 }

Here is the call graph for this function:


Member Function Documentation

tHeapBase * eWallView::Heap (  )  const [protected, virtual]

Implements tHeapElement.

Definition at line 47 of file eWall.cpp.

References viewer.

00047                                 {
00048     return &(se_wallsVisible[viewer]);
00049 }

void eWallView::Set ( int  view,
eWall mw 
) [inline]

Definition at line 75 of file eWall.h.

References viewer.

Referenced by eWall::eWall().

00075                                 {
00076         viewer=view;
00077 #ifdef CAUTION_WALL
00078         wall=mw;
00079 #endif
00080     }

Here is the caller graph for this function:

REAL eWallView::Value (  )  [inline]

Definition at line 82 of file eWall.h.

References tHeapElement::Val().

Referenced by draw_eWall().

00082 {return tHeapElement::Val();}

Here is the call graph for this function:

Here is the caller graph for this function:

void eWallView::SetValue ( REAL  v  ) 

Definition at line 52 of file eWall.cpp.

References tHeapElement::SetVal(), and viewer.

Referenced by eWall::SetVisHeight().

00052                               {
00053     tHeapElement::SetVal( v, se_wallsVisible[viewer] );
00054 }

Here is the call graph for this function:

Here is the caller graph for this function:

eWall * eWallView::Belongs (  ) 

Definition at line 295 of file eWall.cpp.

References NULL, eWall::view, and viewer.

Referenced by draw_eWall().

00296 {
00297 #ifdef CAUTION_WALL
00298     return wall;
00299 #else
00300     static eWall* pwall = NULL;
00301     static eWall& wall = *pwall;
00302 
00303     // Z-Man: this code is still evil, but it seems to work. The proper way would be to enable CAUTION_WALL in the header, but that wastes 16 bytes per eWall. Can't go arount wasting memory for the sake of portability, can we?
00304     return reinterpret_cast<eWall *> (reinterpret_cast<char*>(&this[-viewer]) - reinterpret_cast<char*>(&wall.view[0]) + reinterpret_cast<char*>(&wall));
00305 #endif
00306 }

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class eWall [friend]

Definition at line 62 of file eWall.h.


Member Data Documentation

int eWallView::viewer [protected]

Definition at line 70 of file eWall.h.

Referenced by Belongs(), Heap(), Set(), and SetValue().


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:32:32 2008 for Armagetron Advanced by  doxygen 1.5.4