123 static char CharName(
int kind,
int sub);
124 static int Color (
int kind,
int sub);
133 virtual void Notify(QString)
const = 0;
142 virtual void Update(
int x,
int y,
int z) = 0;
152 virtual void Move(
int) = 0;
162 virtual void UpdateAround(
int x,
int y,
int z,
int rng) = 0;
176 virtual void ActionXyz(
int * x,
int * y,
int * z)
const;
184 virtual void Print() = 0;
199 #endif // VIRTSCREEN_H
virtual void Update(int x, int y, int z)=0
This is called when block at (x, y, z) should be updated in screen.
static char CharName(int kind, int sub)
virtual void ActionXyz(int *x, int *y, int *z) const
Used to get player focus coordinates from screen.
VirtScreen & operator=(const VirtScreen &)=delete
World provides global physics and shred connection.
static int Color(int kind, int sub)
virtual void UpdateAll()=0
This is called when all world should be updated in sceen.
virtual void UpdateAround(int x, int y, int z, int rng)=0
Called when area around xyz with range needs to be updated.
virtual void Notify(QString) const =0
This is called for a notification to be displayed.
virtual void UpdatePlayer()=0
Called when some player property needs to be updated in screen.
void ExitReceived()
This is emitted when input receives exit key.
virtual void UpdatesEnd()
This is called when current group of updates is ended.
virtual void PassString(QString &) const =0
This is called when string is needed to be received from input.
VirtScreen(World *, Player *)
Constructor makes player and world connections.
This class provides base for all screens for freg.
virtual void DisplayFile(QString path)
This shows a file by path.
void DeathScreen()
This is called when player is dead, and displayed until respawn.
virtual void Print()=0
Prints world. Should not be called not within screen.
This class contains information specific to player and interface for manipulating him...
virtual void Move(int)=0
Called when world loaded zone is moved to update world in screen.