ScummVM API documentation
Titanic::CBaseStars Class Reference

#include <base_stars.h>

Inheritance diagram for Titanic::CBaseStars:
Titanic::CStarFieldBase Titanic::CStarMarkers Titanic::CStarField

Public Member Functions

virtual void draw (CSurfaceArea *surfaceArea, CCamera *camera, CStarCloseup *closeup)
 
virtual bool loadYale (int v1)
 
virtual bool selectStar (CSurfaceArea *surfaceArea, CCamera *camera, const Common::Point &pt, void *handler=nullptr)
 
virtual bool addStar (const CBaseStarEntry *entry)
 
virtual bool loadStar ()
 
virtual void load (SimpleFile *file)
 
virtual void save (SimpleFile *file, int indent)
 
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)
 

Public Attributes

Common::Array< CBaseStarEntry_data
 

Protected Member Functions

void loadData (Common::SeekableReadStream &s)
 
void loadData (const CString &resName)
 
void resetEntry (CBaseStarEntry &entry)
 

Protected Attributes

FRange _minMax
 
double _minVal
 
double _maxVal
 
double _range
 
double _value1
 
double _value2
 
double _value3
 
double _value4
 

Detailed Description

Base class for views that draw a set of stars in simulated 3D space

Member Function Documentation

◆ loadData() [1/2]

void Titanic::CBaseStars::loadData ( Common::SeekableReadStream s)
protected

Load entry data from a passed stream

◆ loadData() [2/2]

void Titanic::CBaseStars::loadData ( const CString resName)
protected

Load entry data from a specified resource

◆ resetEntry()

void Titanic::CBaseStars::resetEntry ( CBaseStarEntry entry)
protected

Reset the data for an entry

◆ draw()

virtual void Titanic::CBaseStars::draw ( CSurfaceArea surfaceArea,
CCamera camera,
CStarCloseup closeup 
)
virtual

Draw the item

Reimplemented in Titanic::CStarMarkers.

◆ selectStar()

virtual bool Titanic::CBaseStars::selectStar ( CSurfaceArea surfaceArea,
CCamera camera,
const Common::Point pt,
void *  handler = nullptr 
)
inlinevirtual

Selects a star

Reimplemented in Titanic::CStarFieldBase.

◆ addStar()

virtual bool Titanic::CBaseStars::addStar ( const CBaseStarEntry entry)
inlinevirtual

Adds a new star, or removes one if already present at the given co-ordinates

Reimplemented in Titanic::CStarMarkers.

◆ load()

virtual void Titanic::CBaseStars::load ( SimpleFile file)
inlinevirtual

Load the item's data

Reimplemented in Titanic::CStarField.

◆ save()

virtual void Titanic::CBaseStars::save ( SimpleFile file,
int  indent 
)
inlinevirtual

Save the item's data

Reimplemented in Titanic::CStarField.

◆ clear()

void Titanic::CBaseStars::clear ( )

Clear allocated data

◆ getDataPtr()

const CBaseStarEntry* Titanic::CBaseStars::getDataPtr ( int  index) const

Get a pointer to a data entry

◆ findStar()

int Titanic::CBaseStars::findStar ( CSurfaceArea surfaceArea,
CCamera camera,
const Common::Point pt 
)

Checks for the presence of a star at a given position on the screen given the specified camera view, and returns it's index


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