OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
GUIWindow_House Class Reference

#include <UIHouses.h>

Inheritance diagram for GUIWindow_House:
GUIWindow GUIWindow_Bank GUIWindow_Jail GUIWindow_MagicGuild GUIWindow_MercenaryGuild GUIWindow_Shop GUIWindow_Tavern GUIWindow_Temple GUIWindow_TownHall GUIWindow_Training GUIWindow_Transport

Public Member Functions

 GUIWindow_House (HouseId houseId)
 
virtual ~GUIWindow_House ()
 
virtual void Update () override
 
virtual void Release () override
 
HouseType buildingType () const
 
HouseId houseId () const
 
DialogueId getCurrentDialogue () const
 
void setCurrentDialogue (DialogueId dialogue)
 
void houseDialogManager ()
 
void houseNPCDialogue ()
 
void initializeProprietorDialogue ()
 
void initializeNPCDialogue (int npc)
 
void initializeNPCDialogueButtons (std::vector< DialogueId > optionList)
 
void learnSelectedSkill (CharacterSkillType skill)
 
void reinitDialogueWindow ()
 
bool checkIfPlayerCanInteract ()
 
void drawOptions (std::vector< std::string > &optionsText, Color selectColor, int topOptionShift=0, bool denseSpacing=false) const
 
virtual void houseDialogueOptionSelected (DialogueId option)
 
virtual void houseSpecificDialogue ()
 
virtual std::vector< DialogueIdlistDialogueOptions ()
 
virtual void updateDialogueOnEscape ()
 
virtual void houseScreenClick ()
 
virtual void playHouseGoodbyeSpeech ()
 
- Public Member Functions inherited from GUIWindow
 GUIWindow ()
 
 GUIWindow (WindowType windowType, Pointi position, Sizei dimensions, std::string_view hint={})
 
virtual ~GUIWindow ()=default
 
GUIButtonCreateButton (Pointi position, Sizei dimensions, int uButtonType, int uData, UIMessageType msg, unsigned int msg_param, Io::InputAction action=Io::InputAction::Invalid, std::string_view label={}, const std::vector< GraphicsImage * > &textures={})
 
GUIButtonCreateButton (std::string id, Pointi position, Sizei dimensions, int uButtonType, int uData, UIMessageType msg, unsigned int msg_param, Io::InputAction action=Io::InputAction::Invalid, std::string_view label={}, const std::vector< GraphicsImage * > &textures={})
 
bool Contains (unsigned int x, unsigned int y)
 
void DrawFlashingInputCursor (int uX, int uY, GUIFont *a2)
 
int DrawTextInRect (GUIFont *font, Pointi position, Color color, std::string_view text, int rect_width, int reverse_text)
 
void DrawText (GUIFont *font, Pointi position, Color color, std::string_view text, int maxHeight=0, Color shadowColor=colorTable.Black)
 
void DrawTitleText (GUIFont *font, int horizontalMargin, int verticalMargin, Color color, std::string_view text, int lineSpacing)
 
void DrawShops_next_generation_time_string (Duration time)
 
void DrawMessageBox (bool inside_game_viewport)
 
GUIButtonGetControl (unsigned int uID)
 
void setKeyboardControlGroup (int buttonsCount, bool msgOnSelect, int selectStep, int initialPosition)
 
virtual void Update ()
 
virtual void Release ()
 
void DeleteButtons ()
 

Protected Member Functions

void learnSkillsDialogue (Color selectColor)
 

Protected Attributes

HouseId _houseId = HOUSE_INVALID
 
DialogueId _currentDialogue = DIALOGUE_NULL
 
int _savedButtonsNum {}
 
bool _transactionPerformed = false
 

Private Member Functions

void drawNpcHouseNameAndTitle (NPCData *npcData)
 
void drawNpcHouseGreetingMessage (NPCData *npcData)
 
void drawNpcHouseDialogueOptions (NPCData *npcData) const
 
void drawNpcHouseDialogueResponse ()
 

Additional Inherited Members

- Static Public Member Functions inherited from GUIWindow
static void InitializeGUI ()
 
- Public Attributes inherited from GUIWindow
int uFrameX = 0
 
int uFrameY = 0
 
int uFrameWidth = 0
 
int uFrameHeight = 0
 
int uFrameZ = 0
 
int uFrameW = 0
 
WindowType eWindowType = WINDOW_null
 
int field_24 = 0
 
int pNumPresenceButton = 0
 
int pCurrentPosActiveItem = 0
 
bool _msgOnKeyboardSelect = true
 
int _selectStep = 0
 
int pStartingPosActiveItem = 0
 
WindowInputStatus keyboard_input_status = WINDOW_INPUT_NONE
 
bool receives_keyboard_input = false
 
std::string sHint
 
std::vector< GUIButton * > vButtons
 
std::shared_ptr< Io::Mousemouse = nullptr
 

Constructor & Destructor Documentation

◆ GUIWindow_House()

GUIWindow_House::GUIWindow_House ( HouseId  houseId)
explicit

◆ ~GUIWindow_House()

virtual GUIWindow_House::~GUIWindow_House ( )
inlinevirtual

Member Function Documentation

◆ buildingType()

HouseType GUIWindow_House::buildingType ( ) const
inline

◆ checkIfPlayerCanInteract()

bool GUIWindow_House::checkIfPlayerCanInteract ( )

◆ drawNpcHouseDialogueOptions()

void GUIWindow_House::drawNpcHouseDialogueOptions ( NPCData npcData) const
private

◆ drawNpcHouseDialogueResponse()

void GUIWindow_House::drawNpcHouseDialogueResponse ( )
private

◆ drawNpcHouseGreetingMessage()

void GUIWindow_House::drawNpcHouseGreetingMessage ( NPCData npcData)
private

◆ drawNpcHouseNameAndTitle()

void GUIWindow_House::drawNpcHouseNameAndTitle ( NPCData npcData)
private

◆ drawOptions()

void GUIWindow_House::drawOptions ( std::vector< std::string > &  optionsText,
Color  selectColor,
int  topOptionShift = 0,
bool  denseSpacing = false 
) const

◆ getCurrentDialogue()

DialogueId GUIWindow_House::getCurrentDialogue ( ) const
inline

◆ houseDialogManager()

void GUIWindow_House::houseDialogManager ( )

◆ houseDialogueOptionSelected()

void GUIWindow_House::houseDialogueOptionSelected ( DialogueId  option)
virtual

◆ houseId()

HouseId GUIWindow_House::houseId ( ) const
inline

◆ houseNPCDialogue()

void GUIWindow_House::houseNPCDialogue ( )

◆ houseScreenClick()

void GUIWindow_House::houseScreenClick ( )
virtual

Reimplemented in GUIWindow_MagicGuild, and GUIWindow_Shop.

◆ houseSpecificDialogue()

void GUIWindow_House::houseSpecificDialogue ( )
virtual

◆ initializeNPCDialogue()

void GUIWindow_House::initializeNPCDialogue ( int  npc)

◆ initializeNPCDialogueButtons()

void GUIWindow_House::initializeNPCDialogueButtons ( std::vector< DialogueId optionList)

◆ initializeProprietorDialogue()

void GUIWindow_House::initializeProprietorDialogue ( )

◆ learnSelectedSkill()

void GUIWindow_House::learnSelectedSkill ( CharacterSkillType  skill)

◆ learnSkillsDialogue()

void GUIWindow_House::learnSkillsDialogue ( Color  selectColor)
protected

◆ listDialogueOptions()

std::vector< DialogueId > GUIWindow_House::listDialogueOptions ( )
virtual

◆ playHouseGoodbyeSpeech()

void GUIWindow_House::playHouseGoodbyeSpeech ( )
virtual

◆ reinitDialogueWindow()

void GUIWindow_House::reinitDialogueWindow ( )

◆ Release()

void GUIWindow_House::Release ( )
overridevirtual

Reimplemented from GUIWindow.

◆ setCurrentDialogue()

void GUIWindow_House::setCurrentDialogue ( DialogueId  dialogue)
inline

◆ Update()

void GUIWindow_House::Update ( )
overridevirtual

Reimplemented from GUIWindow.

◆ updateDialogueOnEscape()

void GUIWindow_House::updateDialogueOnEscape ( )
virtual

Member Data Documentation

◆ _currentDialogue

DialogueId GUIWindow_House::_currentDialogue = DIALOGUE_NULL
protected

◆ _houseId

HouseId GUIWindow_House::_houseId = HOUSE_INVALID
protected

◆ _savedButtonsNum

int GUIWindow_House::_savedButtonsNum {}
protected

◆ _transactionPerformed

bool GUIWindow_House::_transactionPerformed = false
protected

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