summaryrefslogtreecommitdiffstats
path: root/src/UI/WindowOwner.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-07-31 16:49:10 +0200
committerMattes D <github@xoft.cz>2015-07-31 16:49:10 +0200
commit6e4122e551eeb41d3e950b363dd837d5586fe560 (patch)
treeb5ee221d8a8e63c7d3b7868da1db19bf717a6ffd /src/UI/WindowOwner.h
parentMerge pull request #2400 from cuberite/OffloadBadChunks (diff)
downloadcuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.gz
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.bz2
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.lz
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.xz
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.zst
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.zip
Diffstat (limited to '')
-rw-r--r--src/UI/WindowOwner.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/UI/WindowOwner.h b/src/UI/WindowOwner.h
index 4dc3cf080..72a5348c4 100644
--- a/src/UI/WindowOwner.h
+++ b/src/UI/WindowOwner.h
@@ -4,20 +4,16 @@
#include "../Entities/Entity.h"
#include "Window.h"
-/*
-Being a descendant of cWindowOwner means that the class can own one window. That window can be
+/* Being a descendant of cWindowOwner means that the class can own one window. That window can be
queried, opened by other players, closed by players and finally destroyed.
Also, a cWindowOwner can be queried for the block coords where the window is displayed. That will be used
-for entities / players in motion to close their windows when they get too far away from the window "source".
-*/
+for entities / players in motion to close their windows when they get too far away from the window "source". */
-/**
-Base class for the window owning
-*/
+/** Base class for the window owning */
class cWindowOwner
{
public:
@@ -46,7 +42,7 @@ public:
return m_Window;
}
- /// Returns the block position at which the element owning the window is
+ /** Returns the block position at which the element owning the window is */
virtual Vector3i GetBlockPos(void) = 0;
private:
@@ -57,9 +53,7 @@ private:
-/**
-Window owner that is associated with a block entity (chest, furnace, ...)
-*/
+/** Window owner that is associated with a block entity (chest, furnace, ...) */
class cBlockEntityWindowOwner :
public cWindowOwner
{
@@ -82,9 +76,7 @@ private:
-/**
-Window owner that is associated with an entity (chest minecart)
-*/
+/** Window owner that is associated with an entity (chest minecart etc.) */
class cEntityWindowOwner :
public cWindowOwner
{