OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
MenuRoot Class Reference

#include <menuroot.h>

Inheritance diagram for MenuRoot:

Public Member Functions

 MenuRoot (KeyCodec &keyCodec)
 
 ~MenuRoot () override
 
void setMainMenu ()
 
void setMenu (std::string_view menu, KeyCodec::Action key=KeyCodec::Escape)
 
void setMenu (GameMenu *w)
 
void pushMenu (GameMenu *w)
 
void popMenu ()
 
void closeAll ()
 
bool isActive () const
 
void setPlayer (const Npc &pl)
 
void processMusicTheme ()
 
void showVersion (bool s)
 
bool hasVersionLine () const
 
void mouseWheelEvent (Tempest::MouseEvent &event) override
 
void keyRepeatEvent (Tempest::KeyEvent &event) override
 
void keyDownEvent (Tempest::KeyEvent &event) override
 

Protected Member Functions

void mouseDownEvent (Tempest::MouseEvent &event) override
 
void mouseUpEvent (Tempest::MouseEvent &event) override
 

Detailed Description

Definition at line 13 of file menuroot.h.

Constructor & Destructor Documentation

◆ MenuRoot()

MenuRoot::MenuRoot ( KeyCodec keyCodec)

Definition at line 10 of file menuroot.cpp.

◆ ~MenuRoot()

MenuRoot::~MenuRoot ( )
override

Definition at line 18 of file menuroot.cpp.

Member Function Documentation

◆ closeAll()

void MenuRoot::closeAll ( )

Definition at line 98 of file menuroot.cpp.

◆ hasVersionLine()

bool MenuRoot::hasVersionLine ( ) const

Definition at line 125 of file menuroot.cpp.

◆ isActive()

bool MenuRoot::isActive ( ) const

Definition at line 106 of file menuroot.cpp.

◆ keyDownEvent()

void MenuRoot::keyDownEvent ( Tempest::KeyEvent &  event)
override

Definition at line 171 of file menuroot.cpp.

◆ keyRepeatEvent()

void MenuRoot::keyRepeatEvent ( Tempest::KeyEvent &  event)
override

Definition at line 155 of file menuroot.cpp.

◆ mouseDownEvent()

void MenuRoot::mouseDownEvent ( Tempest::MouseEvent &  event)
overrideprotected

Definition at line 129 of file menuroot.cpp.

◆ mouseUpEvent()

void MenuRoot::mouseUpEvent ( Tempest::MouseEvent &  event)
overrideprotected

Definition at line 141 of file menuroot.cpp.

◆ mouseWheelEvent()

void MenuRoot::mouseWheelEvent ( Tempest::MouseEvent &  event)
override

Definition at line 144 of file menuroot.cpp.

◆ popMenu()

void MenuRoot::popMenu ( )

Definition at line 79 of file menuroot.cpp.

◆ processMusicTheme()

void MenuRoot::processMusicTheme ( )

Definition at line 115 of file menuroot.cpp.

◆ pushMenu()

void MenuRoot::pushMenu ( GameMenu w)

Definition at line 67 of file menuroot.cpp.

◆ setMainMenu()

void MenuRoot::setMainMenu ( )

Definition at line 47 of file menuroot.cpp.

◆ setMenu() [1/2]

void MenuRoot::setMenu ( GameMenu w)

Definition at line 60 of file menuroot.cpp.

◆ setMenu() [2/2]

void MenuRoot::setMenu ( std::string_view  menu,
KeyCodec::Action  key = KeyCodec::Escape 
)

Definition at line 52 of file menuroot.cpp.

◆ setPlayer()

void MenuRoot::setPlayer ( const Npc pl)

Definition at line 110 of file menuroot.cpp.

◆ showVersion()

void MenuRoot::showVersion ( bool  s)

Definition at line 120 of file menuroot.cpp.


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