ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Grim::Sector Class Reference

#include <sector.h>

Collaboration diagram for Grim::Sector:

List of all members.


struct  ExitInfo

Public Types

enum  SectorType {
  NoneType = 0, WalkType = 0x1000, FunnelType = 0x1100, CameraType = 0x2000,
  SpecialType = 0x4000, HotType = 0x8000

Public Member Functions

 Sector ()
 Sector (const Sector &other)
virtual ~Sector ()
void saveState (SaveGame *savedState) const
bool restoreState (SaveGame *savedState)
void load (TextSplitter &ts)
void loadBinary (Common::SeekableReadStream *data)
void setVisible (bool visible)
void shrink (float radius)
void unshrink ()
Common::String getName () const
int getSectorId () const
SectorType getType () const
bool isVisible () const
bool isPointInSector (const Math::Vector3d &point) const
float distanceToPoint (const Math::Vector3d &point) const
Common::List< Math::Line3dgetBridgesTo (Sector *sector) const
Math::Vector3d getProjectionToPlane (const Math::Vector3d &point) const
Math::Vector3d getProjectionToPuckVector (const Math::Vector3d &v) const
Math::Vector3d getClosestPoint (const Math::Vector3d &point) const
void getExitInfo (const Math::Vector3d &start, const Math::Vector3d &dir, struct ExitInfo *result) const
int getNumSortplanes ()
int getSortplane (int setup)
int getNumVertices ()
Math::Vector3dgetVertices () const
Math::Vector3d getNormal () const
Sectoroperator= (const Sector &other)
bool operator== (const Sector &other) const

Private Attributes

int _numVertices
int _id
int _numSortplanes
int * _sortplanes
Common::String _name
SectorType _type
bool _visible
bool _invalid
float _height
float _shrinkRadius
Math::Vector3d _normal

Detailed Description

Definition at line 41 of file sector.h.

Member Enumeration Documentation


Definition at line 43 of file sector.h.

Constructor & Destructor Documentation

Grim::Sector::Sector (  ) 

Definition at line 34 of file sector.cpp.

Grim::Sector::Sector ( const Sector other  ) 

Definition at line 40 of file sector.cpp.

Grim::Sector::~Sector (  )  [virtual]

Definition at line 46 of file sector.cpp.

Member Function Documentation

float Grim::Sector::distanceToPoint ( const Math::Vector3d point  )  const

Definition at line 299 of file sector.cpp.

Common::List< Math::Line3d > Grim::Sector::getBridgesTo ( Sector sector  )  const

Definition at line 335 of file sector.cpp.

Math::Vector3d Grim::Sector::getClosestPoint ( const Math::Vector3d point  )  const

Definition at line 438 of file sector.cpp.

void Grim::Sector::getExitInfo ( const Math::Vector3d start,
const Math::Vector3d dir,
struct ExitInfo result 
) const

Definition at line 470 of file sector.cpp.

Common::String Grim::Sector::getName (  )  const [inline]

Definition at line 65 of file sector.h.

Math::Vector3d Grim::Sector::getNormal (  )  const [inline]

Definition at line 91 of file sector.h.

int Grim::Sector::getNumSortplanes (  )  [inline]

Definition at line 87 of file sector.h.

int Grim::Sector::getNumVertices (  )  [inline]

Definition at line 89 of file sector.h.

Math::Vector3d Grim::Sector::getProjectionToPlane ( const Math::Vector3d point  )  const

Definition at line 418 of file sector.cpp.

Math::Vector3d Grim::Sector::getProjectionToPuckVector ( const Math::Vector3d v  )  const

Definition at line 428 of file sector.cpp.

int Grim::Sector::getSectorId (  )  const [inline]

Definition at line 66 of file sector.h.

int Grim::Sector::getSortplane ( int  setup  )  [inline]

Definition at line 88 of file sector.h.

SectorType Grim::Sector::getType (  )  const [inline]

Definition at line 67 of file sector.h.

Math::Vector3d* Grim::Sector::getVertices (  )  const [inline]

Definition at line 90 of file sector.h.

bool Grim::Sector::isPointInSector ( const Math::Vector3d point  )  const

Definition at line 313 of file sector.cpp.

bool Grim::Sector::isVisible (  )  const [inline]

Definition at line 68 of file sector.h.

void Grim::Sector::load ( TextSplitter ts  ) 

Definition at line 119 of file sector.cpp.

void Grim::Sector::loadBinary ( Common::SeekableReadStream data  ) 

Definition at line 177 of file sector.cpp.

Sector & Grim::Sector::operator= ( const Sector other  ) 

Definition at line 510 of file sector.cpp.

bool Grim::Sector::operator== ( const Sector other  )  const

Definition at line 536 of file sector.cpp.

bool Grim::Sector::restoreState ( SaveGame savedState  ) 

Definition at line 83 of file sector.cpp.

void Grim::Sector::saveState ( SaveGame savedState  )  const

Definition at line 52 of file sector.cpp.

void Grim::Sector::setVisible ( bool  visible  ) 

Definition at line 214 of file sector.cpp.

void Grim::Sector::shrink ( float  radius  ) 

Definition at line 218 of file sector.cpp.

void Grim::Sector::unshrink (  ) 

Definition at line 287 of file sector.cpp.

Member Data Documentation

float Grim::Sector::_height [private]

Definition at line 108 of file sector.h.

int Grim::Sector::_id [private]

Definition at line 98 of file sector.h.

bool Grim::Sector::_invalid [private]

Definition at line 105 of file sector.h.

Definition at line 102 of file sector.h.

Definition at line 111 of file sector.h.

Definition at line 99 of file sector.h.

Definition at line 97 of file sector.h.

Definition at line 107 of file sector.h.

float Grim::Sector::_shrinkRadius [private]

Definition at line 109 of file sector.h.

int* Grim::Sector::_sortplanes [private]

Definition at line 100 of file sector.h.

Definition at line 103 of file sector.h.

Definition at line 106 of file sector.h.

bool Grim::Sector::_visible [private]

Definition at line 104 of file sector.h.

The documentation for this class was generated from the following files:

Generated on Sat Sep 19 2020 05:05:24 for ResidualVM by doxygen 1.7.1
curved edge   curved edge