ScummVM API documentation
MM::MM1::Views::Locations::BlacksmithBuyMisc Class Reference
Inheritance diagram for MM::MM1::Views::Locations::BlacksmithBuyMisc:
MM::MM1::Views::Locations::BlacksmithSubview MM::MM1::BuyMiscData MM::MM1::Views::Locations::Location MM::MM1::BlacksmithData MM::MM1::Views::TextView MM::MM1::UIElement

Public Member Functions

void draw () override
 
bool msgFocus (const FocusMessage &msg) override
 
- Public Member Functions inherited from MM::MM1::Views::Locations::BlacksmithSubview
 BlacksmithSubview (const Common::String &name)
 
bool msgKeypress (const KeypressMessage &msg) override
 
bool msgAction (const ActionMessage &msg) override
 
- Public Member Functions inherited from MM::MM1::Views::Locations::Location
 Location (const Common::String &name)
 
bool msgGame (const GameMessage &msg) override
 
void draw () override
 
- Public Member Functions inherited from MM::MM1::Views::TextView
 TextView (const Common::String &name)
 
 TextView (const Common::String &name, UIElement *owner)
 
bool msgDrawGraphic (const DrawGraphicMessage &msg) override
 
- Public Member Functions inherited from MM::MM1::UIElement
 UIElement (const Common::String &name, UIElement *uiParent)
 
bool needsRedraw () const
 
void redraw ()
 
void focus ()
 
virtual void close ()
 
bool isFocused () const
 
void replaceView (UIElement *ui, bool replaceAllViews=false)
 
void replaceView (const Common::String &name, bool replaceAllViews=false)
 
void addView (UIElement *ui)
 
void addView (const Common::String &name)
 
void addView ()
 
void open ()
 
int getRandomNumber (int minNumber, int maxNumber)
 
int getRandomNumber (int maxNumber)
 
Common::String getName () const
 
virtual void setBounds (const Common::Rect &r)
 
Common::Rect getBounds () const
 
Graphics::ManagedSurface getSurface () const
 
virtual bool tick ()
 
virtual UIElementfindView (const Common::String &name)
 
bool send (const Common::String &viewName, const FocusMessage &msg)
 
bool send (const FocusMessage &msg)
 
bool send (const Common::String &viewName, const UnfocusMessage &msg)
 
bool send (const UnfocusMessage &msg)
 
bool send (const Common::String &viewName, const KeypressMessage &msg)
 
bool send (const KeypressMessage &msg)
 
bool send (const Common::String &viewName, const MouseDownMessage &msg)
 
bool send (const MouseDownMessage &msg)
 
bool send (const Common::String &viewName, const MouseUpMessage &msg)
 
bool send (const MouseUpMessage &msg)
 
bool send (const Common::String &viewName, const ActionMessage &msg)
 
bool send (const ActionMessage &msg)
 
bool send (const Common::String &viewName, const GameMessage &msg)
 
bool send (const GameMessage &msg)
 
bool send (const Common::String &viewName, const HeaderMessage &msg)
 
bool send (const HeaderMessage &msg)
 
bool send (const Common::String &viewName, const InfoMessage &msg)
 
bool send (const InfoMessage &msg)
 
bool send (const Common::String &viewName, const DrawGraphicMessage &msg)
 
bool send (const DrawGraphicMessage &msg)
 

Additional Inherited Members

- Public Attributes inherited from MM::MM1::BlacksmithData
const byte BLACKSMITH_CLASS_USAGE [6] = { 0x20, 0x10, 8, 4, 2, 1 }
 
- Public Attributes inherited from MM::MM1::BuyMiscData
const byte MISC_TOWN1 [6] = { 172, 171, 175, 178, 185, 192 }
 
const byte MISC_TOWN2 [6] = { 172, 171, 174, 183, 188, 195 }
 
const byte MISC_TOWN3 [6] = { 173, 175, 176, 179, 184, 195 }
 
const byte MISC_TOWN4 [6] = { 180, 196, 211, 215, 219, 223 }
 
const byte MISC_TOWN5 [6] = { 171, 173, 177, 185, 186, 192 }
 
const byte * MISC [5]
 
- Protected Member Functions inherited from MM::MM1::Views::Locations::BlacksmithSubview
void drawItems ()
 
virtual void selectItem (uint index)
 
- Protected Member Functions inherited from MM::MM1::Views::Locations::Location
void displayMessage (int x, const Common::String &msg)
 
void displayMessage (const Common::String &msg)
 
void newLine ()
 
void leave ()
 
bool subtractGold (uint amount)
 
void notEnoughGold ()
 
void backpackFull ()
 
virtual void changeCharacter (uint index)
 
- Protected Member Functions inherited from MM::MM1::Views::TextView
void setTextColor (byte col)
 
void writeChar (unsigned char c)
 
void writeChar (int x, int y, unsigned char c)
 
void writeString (const Common::String &str)
 
void writeString (int x, int y, const Common::String &str)
 
void writeNumber (int val)
 
void writeNumber (int x, int y, int val)
 
void newLine ()
 
void writeSpaces (size_t count)
 
void clearSurface () override
 
void clearLines (int y1, int y2)
 
void drawTextBorder ()
 
void escToGoBack (int x=12, int y=-1)
 
virtual void timeout () override
 
void drawGraphic (int gfxNum)
 
- Protected Member Functions inherited from MM::MM1::UIElement
Common::Rect getLineBounds (int line1, int line2) const
 
void delaySeconds (uint seconds)
 
void delayFrames (uint frames)
 
bool isDelayActive () const
 
void cancelDelay ()
 
bool endDelay ()
 
virtual bool msgUnfocus (const UnfocusMessage &e)
 
virtual bool msgMouseDown (const MouseDownMessage &e)
 
virtual bool msgMouseUp (const MouseUpMessage &e)
 
virtual bool msgHeader (const HeaderMessage &e)
 
virtual bool msgInfo (const InfoMessage &e)
 
- Protected Attributes inherited from MM::MM1::Views::Locations::BlacksmithSubview
const byte * _items = nullptr
 
- Protected Attributes inherited from MM::MM1::Views::Locations::Location
Common::String _modeString
 
- Protected Attributes inherited from MM::MM1::Views::TextView
Common::Point _textPos
 
byte _bgColor = 0xff
 
- Protected Attributes inherited from MM::MM1::UIElement
UIElement_parent
 
Common::Array< UIElement * > _children
 
Common::Rect _innerBounds
 
Bounds _bounds
 
bool _needsRedraw = true
 
Common::String _name
 

Member Function Documentation

◆ draw()

void MM::MM1::Views::Locations::BlacksmithBuyMisc::draw ( )
overridevirtual

Draws the element

Reimplemented from MM::MM1::UIElement.


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