ScummVM API documentation
Alcachofa::Room Class Reference
Inheritance diagram for Alcachofa::Room:
Alcachofa::ConnectMenu Alcachofa::Inventory Alcachofa::ListenMenu Alcachofa::OptionsMenu Alcachofa::RoomWithFloor

Public Types

using ObjectIterator = Common::Array< ObjectBase * >::const_iterator
 

Public Member Functions

 Room (World *world, Common::SeekableReadStream &stream)
 
Worldworld ()
 
uint8 mapIndex () const
 
const Common::Stringname () const
 
const PathFindingShapeactiveFloor () const
 
int8 orderAt (Common::Point query) const
 
float depthAt (Common::Point query) const
 
uint8 characterAlphaTint () const
 
uint8 characterAlphaPremultiplier () const
 
bool fixedCameraOnEntering () const
 
int musicID () const
 
ObjectIterator beginObjects () const
 
ObjectIterator endObjects () const
 
void update ()
 
void draw ()
 
virtual bool updateInput ()
 
virtual void loadResources ()
 
virtual void freeResources ()
 
virtual void syncGame (Common::Serializer &serializer)
 
ObjectBasegetObjectByName (const char *name) const
 
void toggleActiveFloor ()
 
void debugPrint (bool withObjects) const
 

Static Public Attributes

static constexpr const char * kClassName = "CHabitacion"
 

Protected Member Functions

 Room (World *world)
 
void readRoomV1 (Common::SeekableReadStream &stream)
 
void readRoomV2and3 (Common::SeekableReadStream &stream, bool hasUselessByte)
 
void readObjects (Common::SeekableReadStream &stream)
 
void initBackground ()
 
void updateScripts ()
 
void updateRoomBounds ()
 
void updateInteraction ()
 
void updateObjects ()
 
void drawObjects ()
 
void drawDebug ()
 
ShapeObjectgetSelectedObject (ShapeObject *best=nullptr) const
 

Protected Attributes

World_world
 
ObjectBase_backgroundObject = nullptr
 
Common::String _name
 
Common::String _backgroundName
 
PathFindingShape _floors [2]
 
bool _fixedCameraOnEntering = false
 
int8 _activeFloorI = -1
 
int _musicId = -1
 
int16 _backgroundScale = kBaseScale
 
uint8 _mapIndex
 
uint8 _characterAlphaTint = 0
 
uint8 _characterAlphaPremultiplier = 100
 for some reason in percent instead of 0-255
 
Common::Array< ObjectBase * > _objects
 

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