DDNet documentation
Loading...
Searching...
No Matches
CPrompt Class Reference

#include <prompt.h>

Inheritance diagram for CPrompt:
[legend]
Collaboration diagram for CPrompt:
[legend]

Public Member Functions

void OnInit (CEditor *pEditor) override
bool OnInput (const IInput::CEvent &Event) override
void Render ()
bool IsActive ()
void SetActive ()
void SetInactive ()
Public Member Functions inherited from CEditorComponent
virtual void OnReset ()
virtual void OnMapLoad ()
virtual void OnUpdate ()
void InitSubComponents ()
void RegisterSubComponent (CEditorComponent &Component)
Public Member Functions inherited from CEditorObject
virtual ~CEditorObject ()=default
CEditor * Editor ()
const CEditor * Editor () const
CEditorMap * Map ()
const CEditorMap * Map () const
IInput * Input ()
const IInput * Input () const
IClient * Client ()
const IClient * Client () const
CConfig * Config ()
const CConfig * Config () const
IEngine * Engine ()
const IEngine * Engine () const
IGraphics * Graphics ()
const IGraphics * Graphics () const
ISound * Sound ()
const ISound * Sound () const
ITextRender * TextRender ()
const ITextRender * TextRender () const
IStorage * Storage ()
const IStorage * Storage () const
CUi * Ui ()
const CUi * Ui () const
CRenderMap * RenderMap ()
const CRenderMap * RenderMap () const

Private Attributes

bool m_ResetFilterResults = true
CQuickAction * m_pLastAction = nullptr
int m_PromptSelectedIndex = -1
std::vector< CQuickAction * > m_vpFilteredPromptList
std::vector< CQuickAction * > m_vQuickActions
CLineInputBuffered< 512 > m_PromptInput

Member Function Documentation

◆ IsActive()

bool CPrompt::IsActive ( )

◆ OnInit()

void CPrompt::OnInit ( CEditor * pEditor)
overridevirtual

Initialize the component and interface pointers. Needs to be the first function that is called. The default implementation also resets the component.

Reimplemented from CEditorComponent.

◆ OnInput()

bool CPrompt::OnInput ( const IInput::CEvent & Event)
overridevirtual

Should return true if the event was consumed.

Reimplemented from CEditorComponent.

◆ Render()

void CPrompt::Render ( )

◆ SetActive()

void CPrompt::SetActive ( )

◆ SetInactive()

void CPrompt::SetInactive ( )

Member Data Documentation

◆ m_pLastAction

CQuickAction* CPrompt::m_pLastAction = nullptr
private

◆ m_PromptInput

CLineInputBuffered<512> CPrompt::m_PromptInput
private

◆ m_PromptSelectedIndex

int CPrompt::m_PromptSelectedIndex = -1
private

◆ m_ResetFilterResults

bool CPrompt::m_ResetFilterResults = true
private

◆ m_vpFilteredPromptList

std::vector<CQuickAction *> CPrompt::m_vpFilteredPromptList
private

◆ m_vQuickActions

std::vector<CQuickAction *> CPrompt::m_vQuickActions
private

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