#include <eWall.h>
Public Member Functions | |
eWallView () | |
~eWallView () | |
void | Set (int view, eWall *mw) |
REAL | Value () |
void | SetValue (REAL v) |
eWall * | Belongs () |
Protected Member Functions | |
virtual tHeapBase * | Heap () const |
Protected Attributes | |
int | viewer |
Friends | |
class | eWall |
Definition at line 61 of file eWall.h.
eWallView::~eWallView | ( | ) |
Definition at line 42 of file eWall.cpp.
References tHeapElement::RemoveFromHeap().
00043 { 00044 RemoveFromHeap(); 00045 }
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 }
REAL eWallView::Value | ( | ) | [inline] |
Definition at line 82 of file eWall.h.
References tHeapElement::Val().
Referenced by draw_eWall().
00082 {return tHeapElement::Val();}
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 }
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 }
int eWallView::viewer [protected] |