ScummVM API documentation
Twp::Inventory Class Reference
Inheritance diagram for Twp::Inventory:
Twp::Node

Public Member Functions

void update (float elapsed, Common::SharedPtr< Object > actor=nullptr, const Color &backColor=Color(0, 0, 0), const Color &verbNormal=Color(0, 0, 0))
 
bool isOver () const
 
Common::SharedPtr< ObjectgetObject () const
 
Math::Vector2d getPos (Common::SharedPtr< Object > inv) const
 
Math::Vector2d getPos (int index) const
 
int getOverIndex () const
 
void setVisible (bool visible) override
 
- Public Member Functions inherited from Twp::Node
 Node (const Common::String &name, const Math::Vector2d &scale=Math::Vector2d(1, 1), const Color &color=Color())
 
void setName (const Common::String &name)
 
const Common::StringgetName () const
 
bool isVisible () const
 
void addChild (Node *child)
 
void removeChild (Node *node)
 
void clear ()
 
void remove ()
 
const Common::Array< Node * > & getChildren () const
 
NodegetParent () const
 
const NodegetRoot () const
 
int find (Node *other)
 
void setPos (const Math::Vector2d &pos)
 
Math::Vector2d getPos () const
 
void setOffset (const Math::Vector2d &offset)
 
Math::Vector2d getOffset () const
 
void setShakeOffset (const Math::Vector2d &offset)
 
Math::Vector2d getShakeOffset () const
 
void setRenderOffset (const Math::Vector2d &offset)
 
Math::Vector2d getRenderOffset () const
 
void setScale (const Math::Vector2d &scale)
 
virtual Math::Vector2d getScale () const
 
Math::Vector2d getAbsPos () const
 
virtual Math::Matrix4 getTrsf (const Math::Matrix4 &parentTrsf)
 
void setColor (const Color &color)
 
Color getColor () const
 
Color getComputedColor () const
 
void setAlpha (float alpha)
 
float getAlpha () const
 
void setZSort (int zsort)
 
virtual int getZSort () const
 
void setRotation (float rotation)
 
float getRotation () const
 
void setRotationOffset (float rotationOffset)
 
float getRotationOffset () const
 
void setAnchor (const Math::Vector2d &anchor)
 
void setAnchorNorm (const Math::Vector2d &anchorNorm)
 
void setSize (const Math::Vector2d &size)
 
Math::Vector2d getSize () const
 
virtual Rectf getRect () const
 
void draw (const Math::Matrix4 &parent=Math::Matrix4())
 

Public Attributes

bool _active = false
 

Additional Inherited Members

- Protected Member Functions inherited from Twp::Node
virtual void onDrawChildren (const Math::Matrix4 &trsf)
 
virtual void onColorUpdated (const Color &c)
 
- Protected Attributes inherited from Twp::Node
Common::String _name
 
Math::Vector2d _pos
 
int _zOrder = 0
 
Node_parent = nullptr
 
Common::Array< Node * > _children
 
Math::Vector2d _offset
 
Math::Vector2d _shakeOffset
 
Math::Vector2d _renderOffset
 
Math::Vector2d _anchor
 
Math::Vector2d _anchorNorm
 
Math::Vector2d _scale
 
Math::Vector2d _size
 
Color _color
 
Color _computedColor
 
bool _visible = true
 
float _rotation = 0.f
 
float _rotationOffset = 0.f
 

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