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

#include <set.h>

Inheritance diagram for Grim::Set:
Collaboration diagram for Grim::Set:

List of all members.

Classes

struct  Setup

Public Member Functions

 Set (const Common::String &name, Common::SeekableReadStream *data)
 Set ()
 ~Set ()
void loadText (TextSplitter &ts)
void loadBinary (Common::SeekableReadStream *data)
void setupOverworldLights ()
void saveState (SaveGame *savedState) const
bool restoreState (SaveGame *savedState)
void drawBackground () const
void drawBitmaps (ObjectState::Position stage)
void setupCamera ()
void setupLights (const Math::Vector3d &pos, bool inOverworld)
void setSoundPosition (const char *soundName, const Math::Vector3d &pos)
void setSoundPosition (const char *soundName, const Math::Vector3d &pos, int minVol, int maxVol)
void calculateSoundPosition (const Math::Vector3d &pos, int minVol, int maxVol, int &volume, int &balance)
void setSoundParameters (int minVolume, int maxVolume)
void getSoundParameters (int *minVolume, int *maxVolume)
const Common::StringgetName () const
void setLightEnableState (bool state)
void setLightIntensity (const char *light, float intensity)
void setLightIntensity (int light, float intensity)
void setLightPosition (const char *light, const Math::Vector3d &pos)
void setLightPosition (int light, const Math::Vector3d &pos)
void setLightEnabled (const char *light, bool enabled)
void setLightEnabled (int light, bool enabled)
void turnOffLights ()
void setSetup (int num)
int getSetup () const
int getNumSetups () const
int getSectorCount ()
SectorgetSectorBase (int id)
SectorgetSectorByName (const Common::String &name)
SectorgetSectorBySubstring (const Common::String &str)
SectorgetSectorBySubstring (const Common::String &str, const Math::Vector3d &pos)
SectorfindPointSector (const Math::Vector3d &p, Sector::SectorType type)
int findSectorSortOrder (const Math::Vector3d &p, Sector::SectorType type)
void findClosestSector (const Math::Vector3d &p, Sector **sect, Math::Vector3d *closestPt)
void shrinkBoxes (float radius)
void unshrinkBoxes ()
void addObjectState (const ObjectState::Ptr &s)
void deleteObjectState (const ObjectState::Ptr &s)
void moveObjectStateToFront (const ObjectState::Ptr &s)
void moveObjectStateToBack (const ObjectState::Ptr &s)
ObjectStateaddObjectState (int setupID, ObjectState::Position pos, const char *bitmap, const char *zbitmap, bool transparency)
ObjectStatefindState (const Common::String &filename)
CMapgetCMap ()
SetupgetCurrSetup ()
const Common::List< Light * > & getLights (bool inOverworld)
const Math::FrustumgetFrustum ()
int getShadowCount () const
SetShadowgetShadow (int i)
SetShadowgetShadowByName (const Common::String &name)

Static Public Member Functions

static int32 getStaticTag ()
static Bitmap::Ptr loadBackground (const char *fileName)

Public Attributes

int _minVolume
int _maxVolume

Private Types

typedef Common::List
< ObjectState::Ptr > 
StateList

Private Attributes

bool _locked
Common::String _name
int _numCmaps
ObjectPtr< CMap > * _cmaps
int _numSetups
int _numLights
int _numSectors
int _numObjectStates
int _numShadows
bool _enableLights
Sector ** _sectors
Light_lights
Common::List< Light * > _lightsList
Common::List< Light * > _overworldLightsList
Setup_setups
SetShadow_shadows
Setup_currSetup
StateList _states
Math::Frustum _frustum

Friends

class GrimEngine

Detailed Description

Definition at line 44 of file set.h.


Member Typedef Documentation

typedef Common::List<ObjectState::Ptr> Grim::Set::StateList [private]

Definition at line 169 of file set.h.


Constructor & Destructor Documentation

Grim::Set::Set ( const Common::String name,
Common::SeekableReadStream data 
)

Definition at line 42 of file set.cpp.

Grim::Set::Set (  ) 

Definition at line 57 of file set.cpp.

Grim::Set::~Set (  ) 

Definition at line 66 of file set.cpp.


Member Function Documentation

void Grim::Set::addObjectState ( const ObjectState::Ptr &  s  ) 

Definition at line 1117 of file set.cpp.

ObjectState * Grim::Set::addObjectState ( int  setupID,
ObjectState::Position  pos,
const char *  bitmap,
const char *  zbitmap,
bool  transparency 
)

Definition at line 1121 of file set.cpp.

void Grim::Set::calculateSoundPosition ( const Math::Vector3d pos,
int  minVol,
int  maxVol,
int &  volume,
int &  balance 
)

Definition at line 1035 of file set.cpp.

void Grim::Set::deleteObjectState ( const ObjectState::Ptr &  s  )  [inline]

Definition at line 107 of file set.h.

void Grim::Set::drawBackground (  )  const

Definition at line 886 of file set.cpp.

void Grim::Set::drawBitmaps ( ObjectState::Position  stage  ) 

Definition at line 899 of file set.cpp.

void Grim::Set::findClosestSector ( const Math::Vector3d p,
Sector **  sect,
Math::Vector3d closestPt 
)

Definition at line 940 of file set.cpp.

Sector * Grim::Set::findPointSector ( const Math::Vector3d p,
Sector::SectorType  type 
)

Definition at line 911 of file set.cpp.

int Grim::Set::findSectorSortOrder ( const Math::Vector3d p,
Sector::SectorType  type 
)

Definition at line 920 of file set.cpp.

ObjectState * Grim::Set::findState ( const Common::String filename  ) 

Definition at line 1134 of file set.cpp.

CMap* Grim::Set::getCMap (  )  [inline]

Definition at line 140 of file set.h.

Setup* Grim::Set::getCurrSetup (  )  [inline]

Definition at line 146 of file set.h.

const Math::Frustum& Grim::Set::getFrustum (  )  [inline]

Definition at line 148 of file set.h.

const Common::List<Light *>& Grim::Set::getLights ( bool  inOverworld  )  [inline]

Definition at line 147 of file set.h.

const Common::String& Grim::Set::getName (  )  const [inline]

Definition at line 75 of file set.h.

int Grim::Set::getNumSetups (  )  const [inline]

Definition at line 90 of file set.h.

Sector * Grim::Set::getSectorBase ( int  id  ) 

Definition at line 1070 of file set.cpp.

Sector * Grim::Set::getSectorByName ( const Common::String name  ) 

Definition at line 1077 of file set.cpp.

Sector * Grim::Set::getSectorBySubstring ( const Common::String str,
const Math::Vector3d pos 
)

Definition at line 1097 of file set.cpp.

Sector * Grim::Set::getSectorBySubstring ( const Common::String str  ) 

Definition at line 1087 of file set.cpp.

int Grim::Set::getSectorCount (  )  [inline]

Definition at line 93 of file set.h.

int Grim::Set::getSetup (  )  const [inline]

Definition at line 89 of file set.h.

SetShadow * Grim::Set::getShadow ( int  i  ) 

Definition at line 1162 of file set.cpp.

SetShadow * Grim::Set::getShadowByName ( const Common::String name  ) 

Definition at line 1166 of file set.cpp.

int Grim::Set::getShadowCount (  )  const [inline]

Definition at line 150 of file set.h.

void Grim::Set::getSoundParameters ( int *  minVolume,
int *  maxVolume 
)

Definition at line 1112 of file set.cpp.

static int32 Grim::Set::getStaticTag (  )  [inline, static]

Definition at line 50 of file set.h.

Bitmap::Ptr Grim::Set::loadBackground ( const char *  fileName  )  [static]

Definition at line 866 of file set.cpp.

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

Definition at line 197 of file set.cpp.

void Grim::Set::loadText ( TextSplitter ts  ) 

Definition at line 116 of file set.cpp.

void Grim::Set::moveObjectStateToBack ( const ObjectState::Ptr &  s  ) 

Definition at line 1157 of file set.cpp.

void Grim::Set::moveObjectStateToFront ( const ObjectState::Ptr &  s  ) 

Definition at line 1149 of file set.cpp.

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

Definition at line 292 of file set.cpp.

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

Definition at line 248 of file set.cpp.

void Grim::Set::setLightEnabled ( int  light,
bool  enabled 
)

Definition at line 1004 of file set.cpp.

void Grim::Set::setLightEnabled ( const char *  light,
bool  enabled 
)

Definition at line 994 of file set.cpp.

void Grim::Set::setLightEnableState ( bool  state  )  [inline]

Definition at line 77 of file set.h.

void Grim::Set::setLightIntensity ( const char *  light,
float  intensity 
)

Definition at line 979 of file set.cpp.

void Grim::Set::setLightIntensity ( int  light,
float  intensity 
)

Definition at line 989 of file set.cpp.

void Grim::Set::setLightPosition ( const char *  light,
const Math::Vector3d pos 
)

Definition at line 1009 of file set.cpp.

void Grim::Set::setLightPosition ( int  light,
const Math::Vector3d pos 
)

Definition at line 1019 of file set.cpp.

void Grim::Set::setSetup ( int  num  ) 

Definition at line 846 of file set.cpp.

void Grim::Set::setSoundParameters ( int  minVolume,
int  maxVolume 
)

Definition at line 1107 of file set.cpp.

void Grim::Set::setSoundPosition ( const char *  soundName,
const Math::Vector3d pos,
int  minVol,
int  maxVol 
)

Definition at line 1028 of file set.cpp.

void Grim::Set::setSoundPosition ( const char *  soundName,
const Math::Vector3d pos 
)

Definition at line 1024 of file set.cpp.

void Grim::Set::setupCamera (  ) 

Definition at line 906 of file set.cpp.

void Grim::Set::setupLights ( const Math::Vector3d pos,
bool  inOverworld 
)

Definition at line 808 of file set.cpp.

void Grim::Set::setupOverworldLights (  ) 

Definition at line 92 of file set.cpp.

void Grim::Set::shrinkBoxes ( float  radius  ) 

Definition at line 965 of file set.cpp.

void Grim::Set::turnOffLights (  ) 

Definition at line 834 of file set.cpp.

void Grim::Set::unshrinkBoxes (  ) 

Definition at line 972 of file set.cpp.


Friends And Related Function Documentation

friend class GrimEngine [friend]

Definition at line 174 of file set.h.


Member Data Documentation

Definition at line 158 of file set.h.

Definition at line 168 of file set.h.

bool Grim::Set::_enableLights [private]

Definition at line 160 of file set.h.

Definition at line 172 of file set.h.

Definition at line 162 of file set.h.

Definition at line 163 of file set.h.

bool Grim::Set::_locked [private]

Definition at line 155 of file set.h.

Definition at line 60 of file set.h.

Definition at line 59 of file set.h.

Definition at line 156 of file set.h.

int Grim::Set::_numCmaps [private]

Definition at line 157 of file set.h.

int Grim::Set::_numLights [private]

Definition at line 159 of file set.h.

Definition at line 159 of file set.h.

int Grim::Set::_numSectors [private]

Definition at line 159 of file set.h.

int Grim::Set::_numSetups [private]

Definition at line 159 of file set.h.

int Grim::Set::_numShadows [private]

Definition at line 159 of file set.h.

Definition at line 164 of file set.h.

Definition at line 161 of file set.h.

Definition at line 165 of file set.h.

Definition at line 166 of file set.h.

Definition at line 170 of file set.h.


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


Generated on Sat May 18 2019 05:06:30 for ResidualVM by doxygen 1.7.1
curved edge   curved edge