#include <base_stars.h>
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 CBaseStarEntry * | getDataPtr (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 |
Base class for views that draw a set of stars in simulated 3D space
|
protected |
Load entry data from a passed stream
|
protected |
Load entry data from a specified resource
|
protected |
Reset the data for an entry
|
virtual |
Draw the item
Reimplemented in Titanic::CStarMarkers.
|
inlinevirtual |
Selects a star
Reimplemented in Titanic::CStarFieldBase.
|
inlinevirtual |
Adds a new star, or removes one if already present at the given co-ordinates
Reimplemented in Titanic::CStarMarkers.
|
inlinevirtual |
Load the item's data
Reimplemented in Titanic::CStarField.
|
inlinevirtual |
Save the item's data
Reimplemented in Titanic::CStarField.
void Titanic::CBaseStars::clear | ( | ) |
Clear allocated data
const CBaseStarEntry* Titanic::CBaseStars::getDataPtr | ( | int | index | ) | const |
Get a pointer to a data entry
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