|
OpenGothic
Open source reimplementation of Gothic I and II
|
#include <inventorymenu.h>
Classes | |
| struct | InvPage |
| struct | Page |
| struct | RansackPage |
| struct | TradePage |
Public Types | |
| enum class | State : uint8_t { Closed =0 , Equip , Chest , Trade , Ransack , LockPicking } |
| enum class | LootMode : uint8_t { Normal =0 , Stack , Ten , Hundred } |
| enum class | DrawPass : uint8_t { Back , Front } |
Public Member Functions | |
| InventoryMenu (const KeyCodec &key) | |
| ~InventoryMenu () | |
| void | close () |
| void | open (Npc &pl) |
| void | trade (Npc &pl, Npc &tr) |
| bool | ransack (Npc &pl, Npc &tr) |
| void | open (Npc &pl, Interactive &chest) |
| State | isOpen () const |
| bool | isActive () const |
| void | onWorldChanged () |
| void | tick (uint64_t dt) |
| void | draw (Tempest::Encoder< Tempest::CommandBuffer > &cmd) |
| void | paintNumOverlay (Tempest::PaintEvent &e) |
| void | keyDownEvent (Tempest::KeyEvent &e) override |
| void | keyRepeatEvent (Tempest::KeyEvent &e) override |
| void | keyUpEvent (Tempest::KeyEvent &e) override |
Protected Member Functions | |
| void | paintEvent (Tempest::PaintEvent &e) override |
| void | mouseDownEvent (Tempest::MouseEvent &event) override |
| void | mouseUpEvent (Tempest::MouseEvent &event) override |
| void | mouseWheelEvent (Tempest::MouseEvent &event) override |
Definition at line 17 of file inventorymenu.h.
|
strong |
| Enumerator | |
|---|---|
| Back | |
| Front | |
Definition at line 38 of file inventorymenu.h.
|
strong |
| Enumerator | |
|---|---|
| Normal | |
| Stack | |
| Ten | |
| Hundred | |
Definition at line 31 of file inventorymenu.h.
|
strong |
| Enumerator | |
|---|---|
| Closed | |
| Equip | |
| Chest | |
| Trade | |
| Ransack | |
| LockPicking | |
Definition at line 22 of file inventorymenu.h.
| InventoryMenu::InventoryMenu | ( | const KeyCodec & | key | ) |
Definition at line 78 of file inventorymenu.cpp.
| InventoryMenu::~InventoryMenu | ( | ) |
Definition at line 95 of file inventorymenu.cpp.
| void InventoryMenu::close | ( | ) |
Definition at line 98 of file inventorymenu.cpp.
| void InventoryMenu::draw | ( | Tempest::Encoder< Tempest::CommandBuffer > & | cmd | ) |
Definition at line 759 of file inventorymenu.cpp.
| bool InventoryMenu::isActive | ( | ) | const |
Definition at line 193 of file inventorymenu.cpp.
| InventoryMenu::State InventoryMenu::isOpen | ( | ) | const |
Definition at line 189 of file inventorymenu.cpp.
|
override |
Definition at line 300 of file inventorymenu.cpp.
|
override |
Definition at line 345 of file inventorymenu.cpp.
|
override |
Definition at line 353 of file inventorymenu.cpp.
|
overrideprotected |
Definition at line 358 of file inventorymenu.cpp.
|
overrideprotected |
Definition at line 375 of file inventorymenu.cpp.
|
overrideprotected |
Definition at line 380 of file inventorymenu.cpp.
| void InventoryMenu::onWorldChanged | ( | ) |
Definition at line 197 of file inventorymenu.cpp.
| void InventoryMenu::open | ( | Npc & | pl | ) |
Definition at line 109 of file inventorymenu.cpp.
| void InventoryMenu::open | ( | Npc & | pl, |
| Interactive & | chest | ||
| ) |
Definition at line 166 of file inventorymenu.cpp.
|
overrideprotected |
Definition at line 411 of file inventorymenu.cpp.
| void InventoryMenu::paintNumOverlay | ( | Tempest::PaintEvent & | e | ) |
Definition at line 420 of file inventorymenu.cpp.
Definition at line 147 of file inventorymenu.cpp.
| void InventoryMenu::tick | ( | uint64_t | dt | ) |
Definition at line 204 of file inventorymenu.cpp.
Definition at line 132 of file inventorymenu.cpp.