ScummVM API documentation
Twp::Room Class Reference

Public Member Functions

 Room (const Common::String &name, HSQOBJECT &table)
 
void update (float elapsedSec)
 
Common::SharedPtr< ObjectcreateObject (const Common::String &sheet, const Common::Array< Common::String > &frames)
 
Common::SharedPtr< ObjectcreateTextObject (const Common::String &fontName, const Common::String &text, TextHAlignment hAlign=thLeft, TextVAlignment vAlign=tvCenter, float maxWidth=0.0f)
 
Math::Vector2d getScreenSize ()
 
Common::SharedPtr< Layerlayer (int zsort)
 
Common::SharedPtr< ObjectgetObj (const Common::String &key)
 
LightcreateLight (const Color &color, const Math::Vector2d &pos)
 
float getScaling (float yPos)
 
void objectParallaxLayer (Common::SharedPtr< Object > obj, int zsort)
 
void setOverlay (const Color &color)
 
Color getOverlay () const
 
void walkboxHidden (const Common::String &name, bool hidden)
 
Common::Array< Math::Vector2d > calculatePath (const Math::Vector2d &frm, const Math::Vector2d &to)
 

Static Public Member Functions

static void load (Common::SharedPtr< Room > room, Common::SeekableReadStream &s)
 

Public Attributes

Common::String _name
 
Common::String _sheet
 
Math::Vector2d _roomSize
 
int _fullscreen = 0
 
int _height = 0
 
Common::Array< Common::SharedPtr< Layer > > _layers
 
Common::Array< Walkbox_walkboxes
 
Common::Array< Walkbox_mergedPolygon
 
Common::Array< Scaling_scalings
 
Scaling _scaling
 
HSQOBJECT _table
 
bool _entering = false
 
Lights _lights
 
Common::Array< Common::SharedPtr< Object > > _triggers
 
Common::Array< ScalingTrigger_scalingTriggers
 
bool _pseudo = false
 
Common::SharedPtr< Scene_scene
 
OverlayNode _overlayNode
 
RoomEffect _effect = RoomEffect::None
 
Common::SharedPtr< Motor_overlayTo
 
Common::SharedPtr< Motor_rotateTo
 
float _rotation = 0.f
 
PathFinder _pathFinder
 

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