ScummVM API documentation
Titanic::CStarCrosshairs Class Reference

Public Member Functions

void load (SimpleFile *file)
 
void save (SimpleFile *file, int indent)
 
bool isEmpty () const
 
void selectStar (int starNum, CVideoSurface *surface, CStarField *starField, CStarMarkers *markers)
 
void draw (CSurfaceArea *surfaceArea)
 
bool fn1 (CStarField *starField, CSurfaceArea *surfaceArea, CCamera *camera)
 
void incMatches ()
 
void decMatches (CVideoSurface *surface, CStarField *starField, CStarMarkers *markers)
 
void drawStar (int index, CSurfaceArea *surfaceArea)
 
void drawEntry (int index, CVideoSurface *surface, CStarField *starField, CStarMarkers *markers)
 
void eraseCurrent (CSurfaceArea *surfaceArea)
 
void drawAt (const FPoint &pt, CSurfaceArea *surfaceArea)
 
FPoint getPosition () const
 
int indexOf (const Common::Point &pt) const
 
bool isSolved () const
 
bool isSkipped () const
 

Public Attributes

int _matchIndex
 
int _entryIndex
 

Member Function Documentation

◆ load()

void Titanic::CStarCrosshairs::load ( SimpleFile file)
inline

Load the data for the class from file

◆ save()

void Titanic::CStarCrosshairs::save ( SimpleFile file,
int  indent 
)
inline

Save the data for the class to file

◆ isEmpty()

bool Titanic::CStarCrosshairs::isEmpty ( ) const
inline

Returns true if there are no crosshairs present

◆ incMatches()

void Titanic::CStarCrosshairs::incMatches ( )

Increments the number of matches

◆ decMatches()

void Titanic::CStarCrosshairs::decMatches ( CVideoSurface surface,
CStarField starField,
CStarMarkers markers 
)

Decrements the number of matches

◆ drawStar()

void Titanic::CStarCrosshairs::drawStar ( int  index,
CSurfaceArea surfaceArea 
)

Draw the crosshairs for a given star

◆ drawEntry()

void Titanic::CStarCrosshairs::drawEntry ( int  index,
CVideoSurface surface,
CStarField starField,
CStarMarkers markers 
)

Draws the crosshairs for a specified entry, and adds the star to the starfield markers

◆ eraseCurrent()

void Titanic::CStarCrosshairs::eraseCurrent ( CSurfaceArea surfaceArea)

Erase crosshairs for the most recently selected star

◆ drawAt()

void Titanic::CStarCrosshairs::drawAt ( const FPoint pt,
CSurfaceArea surfaceArea 
)

Draw crosshairs at the given position

◆ getPosition()

FPoint Titanic::CStarCrosshairs::getPosition ( ) const

Returns the position of the most recently selected star

◆ indexOf()

int Titanic::CStarCrosshairs::indexOf ( const Common::Point pt) const

Returns the index of an entry in the rects list a given point falls within

◆ isSolved()

bool Titanic::CStarCrosshairs::isSolved ( ) const
inline

Returns true if the starfield is solved

◆ isSkipped()

bool Titanic::CStarCrosshairs::isSkipped ( ) const
inline

Return true if the starfield puzzle was skipped


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