ScummVM API documentation
Pegasus::MapImage Class Reference
Inheritance diagram for Pegasus::MapImage:
Pegasus::DisplayElement Pegasus::IDObject

Public Member Functions

void writeToStream (Common::WriteStream *)
 
void readFromStream (Common::ReadStream *)
 
void loadGearRoomIfNecessary ()
 
void loadMazeIfNecessary ()
 
void unloadImage ()
 
void moveToMapLocation (const NeighborhoodID, const RoomID, const DirectionConstant)
 
void draw (const Common::Rect &) override
 
bool anyFlagSet ()
 
- Public Member Functions inherited from Pegasus::DisplayElement
 DisplayElement (const DisplayElementID)
 
void setDisplayOrder (const DisplayOrder)
 
DisplayOrder getDisplayOrder () const
 
bool validToDraw (DisplayOrder, DisplayOrder)
 
virtual void draw (const Common::Rect &)
 
bool isDisplaying ()
 
virtual void startDisplaying ()
 
virtual void stopDisplaying ()
 
virtual void show ()
 
virtual void hide ()
 
bool isVisible ()
 
void triggerRedraw ()
 
void setTriggeredElement (DisplayElement *)
 
virtual void setBounds (const CoordType, const CoordType, const CoordType, const CoordType)
 
virtual void setBounds (const Common::Rect &)
 
virtual void getBounds (Common::Rect &) const
 
virtual void sizeElement (const CoordType, const CoordType)
 
virtual void moveElementTo (const CoordType, const CoordType)
 
virtual void moveElement (const CoordType, const CoordType)
 
virtual void getLocation (CoordType &, CoordType &) const
 
virtual void getCenter (CoordType &, CoordType &) const
 
virtual void centerElementAt (const CoordType, const CoordType)
 
- Public Member Functions inherited from Pegasus::IDObject
 IDObject (const int32 id)
 
int32 getObjectID () const
 

Static Public Attributes

static const uint32 kNumMappingRooms
 
static const uint32 kNumMappingFlags = kNumMappingRooms * 4
 

Protected Types

enum  MapArea { kMapNoArea , kMapMaze , kMapGearRoom }
 

Protected Member Functions

void addFlagToMask (const int flag)
 
void getRevealedRects (const uint32, Common::Rect &)
 
void drawPlayer ()
 

Protected Attributes

MapArea _whichArea
 
FlagsArray< byte, kNumMappingFlags > _mappedRooms
 
uint32 _darkGreen
 
uint32 _lightGreen
 
Surface _mapImage
 
Surface _mapMask
 
- Protected Attributes inherited from Pegasus::DisplayElement
Common::Rect _bounds
 
bool _elementIsVisible
 
DisplayElement * _triggeredElement
 
bool _elementIsDisplaying
 
DisplayOrder _elementOrder
 
DisplayElement * _nextElement
 

Member Function Documentation

◆ draw()

void Pegasus::MapImage::draw ( const Common::Rect &  )
overridevirtual

Reimplemented from Pegasus::DisplayElement.

Member Data Documentation

◆ kNumMappingRooms

const uint32 Pegasus::MapImage::kNumMappingRooms
static
Initial value:
= (kMars39 - kMars35 + 1) + (kMars60 - kMars60 + 1) +
(kMarsMaze200 - kMarsMaze004 + 1)

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