ScummVM API documentation
Titanic::CStarField Class Reference
Inheritance diagram for Titanic::CStarField:
Titanic::CStarFieldBase Titanic::CBaseStars

Public Member Functions

void load (SimpleFile *file) override
 
void save (SimpleFile *file, int indent) override
 
bool initDocument ()
 
void render (CVideoSurface *surface, CCamera *camera)
 
bool getBoundaryState () const
 
void setBoundaryState (bool state)
 
bool getConstMapState () const
 
void setConstMapState (bool state)
 
int get54 () const
 
void set54 (int val)
 
StarMode getMode () const
 
void setMode (StarMode mode)
 
void toggleBox ()
 
bool setBoxVisible (bool isVisible)
 
int getMatchedIndex () const
 
bool isCloseToMarker () const
 
void setSolved ()
 
bool isSolved () const
 
bool isSkipped () const
 
void skipPuzzle ()
 
int getMarkerCount () const
 
void fn1 (CErrorCode *errorCode)
 
double lockDistance (CSurfaceArea *surfaceArea, CCamera *camera, FVector &screenCoord, FVector &worldCoord, FVector &photoPos)
 
void fn6 (CVideoSurface *surface, CCamera *camera)
 
void incLockLevel ()
 
void decLockLevel (CVideoSurface *surface)
 
void ToggleSolarRendering ()
 
bool mouseButtonDown (CVideoSurface *surface, CCamera *camera, int flags, const Common::Point &pt)
 
const CBaseStarEntrygetRandomStar () const
 
const CBaseStarEntrygetStar (int index) const
 
- Public Member Functions inherited from Titanic::CStarFieldBase
bool loadYale (int v1) override
 
bool selectStar (CSurfaceArea *surfaceArea, CCamera *camera, const Common::Point &pt, void *handler=nullptr) override
 
bool loadStar () override
 
bool setup ()
 
- Public Member Functions inherited from Titanic::CBaseStars
virtual void draw (CSurfaceArea *surfaceArea, CCamera *camera, CStarCloseup *closeup)
 
virtual bool addStar (const CBaseStarEntry *entry)
 
void clear ()
 
void initialize ()
 
int size () const
 
const CBaseStarEntrygetDataPtr (int index) const
 
int findStar (CSurfaceArea *surfaceArea, CCamera *camera, const Common::Point &pt)
 
int baseFn2 (CSurfaceArea *surfaceArea, CCamera *camera)
 

Additional Inherited Members

- Public Attributes inherited from Titanic::CBaseStars
Common::Array< CBaseStarEntry_data
 
- Protected Member Functions inherited from Titanic::CBaseStars
void loadData (Common::SeekableReadStream &s)
 
void loadData (const CString &resName)
 
void resetEntry (CBaseStarEntry &entry)
 
- Protected Attributes inherited from Titanic::CBaseStars
FRange _minMax
 
double _minVal
 
double _maxVal
 
double _range
 
double _value1
 
double _value2
 
double _value3
 
double _value4
 

Member Function Documentation

◆ load()

void Titanic::CStarField::load ( SimpleFile file)
overridevirtual

Load the data for the class from file

Reimplemented from Titanic::CBaseStars.

◆ save()

void Titanic::CStarField::save ( SimpleFile file,
int  indent 
)
overridevirtual

Save the data for the class to file

Reimplemented from Titanic::CBaseStars.

◆ render()

void Titanic::CStarField::render ( CVideoSurface surface,
CCamera camera 
)

Renders the contents of the starfield

◆ getMode()

StarMode Titanic::CStarField::getMode ( ) const

Gets the current display mode

◆ setMode()

void Titanic::CStarField::setMode ( StarMode  mode)

Sets the display mode

◆ toggleBox()

void Titanic::CStarField::toggleBox ( )

Toggles whether the big box is visible

◆ setBoxVisible()

bool Titanic::CStarField::setBoxVisible ( bool  isVisible)

Sets whether the big box is visible

◆ getMatchedIndex()

int Titanic::CStarField::getMatchedIndex ( ) const

Returns the index for the number of star matches

◆ isCloseToMarker()

bool Titanic::CStarField::isCloseToMarker ( ) const

Returns true if the center of the starfield viewpoint is close to a marker

◆ setSolved()

void Titanic::CStarField::setSolved ( )

Sets the flag that the starfield has been solved

◆ isSolved()

bool Titanic::CStarField::isSolved ( ) const

Returns true if the starfield puzzle has been solved

◆ isSkipped()

bool Titanic::CStarField::isSkipped ( ) const

Return true if the starfield puzzle was skipped

◆ skipPuzzle()

void Titanic::CStarField::skipPuzzle ( )

Skips the starfield puzzle

◆ getMarkerCount()

int Titanic::CStarField::getMarkerCount ( ) const
inline

Returns the number of markers placed in the starfield

◆ lockDistance()

double Titanic::CStarField::lockDistance ( CSurfaceArea surfaceArea,
CCamera camera,
FVector screenCoord,
FVector worldCoord,
FVector photoPos 
)

Gets the lock distance to a star

◆ incLockLevel()

void Titanic::CStarField::incLockLevel ( )

Increments the number of matched markers

◆ decLockLevel()

void Titanic::CStarField::decLockLevel ( CVideoSurface surface)

Decrements the number of matched markers

◆ mouseButtonDown()

bool Titanic::CStarField::mouseButtonDown ( CVideoSurface surface,
CCamera camera,
int  flags,
const Common::Point pt 
)

Called when the starfield is clicked

◆ getRandomStar()

const CBaseStarEntry* Titanic::CStarField::getRandomStar ( ) const

Gets a random star

◆ getStar()

const CBaseStarEntry* Titanic::CStarField::getStar ( int  index) const

Gets a specified star


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