23 #ifndef CURSEDSCREEN_H
24 #define CURSEDSCREEN_H
31 #define NCURSES_MOUSE_VERSION 2
32 #include "pdcurses/curses.h"
34 #define _X_OPEN_SOURCE_EXTENDED
35 #include <ncursesw/ncurses.h>
72 void Notify(QString)
const override;
74 void Update(
int,
int,
int)
override;
78 void Move(
int)
override;
81 void ActionXyz(
int * x,
int * y,
int * z)
const override;
84 void Print()
override;
91 void Arrows(WINDOW *,
int x,
int y,
dirs)
const;
99 void PrintBar(
int x,
int color,
int ch,
int percent,
100 bool value_position_right =
true);
102 bool PrintFile(WINDOW *, QString
const & file_name);
109 int Color(
int kind,
int sub)
const;
154 #endif // CURSEDSCREEN_H
int GetNormalStartY() const
void DisplayFile(QString path) override
Screen(World *, Player *, int &error, bool ascii)
int GetMinimapStartX() const
void UpdateAround(int, int, int, int) override
void PrintNormal(WINDOW *, dirs) const
bool PrintFile(WINDOW *, QString const &file_name)
Returns false when file does not exist, otherwise true.
void PrintQuickInventory()
void ExamineOnNormalScreen(int x, int y, int z, int step) const
World provides global physics and shred connection.
int shiftFocus
Can be -1, 0, 1 for low, normal, and high focus.
char PrintBlock(const Block &, WINDOW *) const
void PassString(QString &) const override
Block * GetFocusedBlock() const
Returns nullptr if block is not player->Visible().
char CharNumber(int z) const
const QChar arrows[WEST+1]
void ProcessCommand(QString command)
char CharNumberFront(int x, int y) const
static void PrintVerticalDirection(WINDOW *, int y, int x, dirs)
int Color(int kind, int sub) const
void UpdatePlayer() override
Keyboard input thread for curses screen for freg.
void ActionXyz(int *x, int *y, int *z) const override
int GetNormalStartX() const
void SetActionMode(actions mode)
void HorizontalArrows(WINDOW *, int y, dirs) const
void MovePlayerDiag(dirs dir1, dirs dir2) const
void InventoryAction(int num) const
void UpdateAll() override
void PrintFront(dirs direction, int x=-1, int y=0) const
void Notify(QString) const override
void Arrows(WINDOW *, int x, int y, dirs) const
void PrintBar(int x, int color, int ch, int percent, bool value_position_right=true)
Can print health, breath and other bars on hudWin.
int GetMinimapStartY() const
static bool IsScreenWide()
Provides block ability to contain other blocks inside.
This class provides base for all screens for freg.
int ColorShred(shred_type) const
void PrintInv(WINDOW *, const Block *, const Inventory *) const
Screen & operator=(const Screen &)=delete
void Update(int, int, int) override
This class contains information specific to player and interface for manipulating him...
Block without special physics and attributes.
void MovePlayer(dirs dir)