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

#include <TownHall.h>

Inheritance diagram for GUIWindow_TownHall:
GUIWindow_House GUIWindow

Public Member Functions

 GUIWindow_TownHall (HouseId houseId)
 
virtual ~GUIWindow_TownHall ()
 
virtual void houseDialogueOptionSelected (DialogueId option) override
 
virtual void houseSpecificDialogue () override
 
virtual std::vector< DialogueIdlistDialogueOptions () override
 
std::string bountyHuntingText ()
 
- Public Member Functions inherited from GUIWindow_House
 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 ()
 

Static Public Member Functions

static MonsterId randomMonsterForHunting (HouseId townhall)
 
- Static Public Member Functions inherited from GUIWindow
static void InitializeGUI ()
 

Protected Member Functions

void mainDialogue ()
 
void bountyHuntDialogue ()
 
void payFineDialogue ()
 
- Protected Member Functions inherited from GUIWindow_House
void learnSkillsDialogue (Color selectColor)
 

Private Member Functions

void bountyHuntingDialogueOptionClicked ()
 

Private Attributes

std::string _bountyHuntText = ""
 
MonsterId _bountyHuntMonsterId = MONSTER_INVALID
 

Additional Inherited Members

- 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
 
- Protected Attributes inherited from GUIWindow_House
HouseId _houseId = HOUSE_INVALID
 
DialogueId _currentDialogue = DIALOGUE_NULL
 
int _savedButtonsNum {}
 
bool _transactionPerformed = false
 

Constructor & Destructor Documentation

◆ GUIWindow_TownHall()

GUIWindow_TownHall::GUIWindow_TownHall ( HouseId  houseId)
inlineexplicit

◆ ~GUIWindow_TownHall()

virtual GUIWindow_TownHall::~GUIWindow_TownHall ( )
inlinevirtual

Member Function Documentation

◆ bountyHuntDialogue()

void GUIWindow_TownHall::bountyHuntDialogue ( )
protected

◆ bountyHuntingDialogueOptionClicked()

void GUIWindow_TownHall::bountyHuntingDialogueOptionClicked ( )
private

Handler for the "Bounty Hunt" dialogue option in a town hall.

Regenerates bounty if needed, gives gold for a completed bounty hunt, and updates the current reply message to be retrieved later with a call to bountyHuntingText.

◆ bountyHuntingText()

std::string GUIWindow_TownHall::bountyHuntingText ( )
Returns
Text to show after the player has clicked on the "Bounty Hunt" dialogue option.

◆ houseDialogueOptionSelected()

void GUIWindow_TownHall::houseDialogueOptionSelected ( DialogueId  option)
overridevirtual

Reimplemented from GUIWindow_House.

◆ houseSpecificDialogue()

void GUIWindow_TownHall::houseSpecificDialogue ( )
overridevirtual

Reimplemented from GUIWindow_House.

◆ listDialogueOptions()

std::vector< DialogueId > GUIWindow_TownHall::listDialogueOptions ( )
overridevirtual

Reimplemented from GUIWindow_House.

◆ mainDialogue()

void GUIWindow_TownHall::mainDialogue ( )
protected

◆ payFineDialogue()

void GUIWindow_TownHall::payFineDialogue ( )
protected

◆ randomMonsterForHunting()

MonsterId GUIWindow_TownHall::randomMonsterForHunting ( HouseId  townhall)
static

Member Data Documentation

◆ _bountyHuntMonsterId

MonsterId GUIWindow_TownHall::_bountyHuntMonsterId = MONSTER_INVALID
private

◆ _bountyHuntText

std::string GUIWindow_TownHall::_bountyHuntText = ""
private

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