Files
cuberite-2a/source/cWindowOwner.h
T

30 lines
474 B
C++
Raw Normal View History

2011-10-03 18:41:19 +00:00
#pragma once
class cWindow;
class cBlockEntity;
2012-03-19 09:37:10 +00:00
2011-10-03 18:41:19 +00:00
class cWindowOwner
{
public:
2012-03-19 09:37:10 +00:00
cWindowOwner() : m_Window( NULL ) {}
void CloseWindow() { m_Window = NULL; }
2011-10-03 18:41:19 +00:00
void OpenWindow( cWindow* a_Window ) { m_Window = a_Window; }
cWindow* GetWindow() { return m_Window; }
void SetEntity(cBlockEntity *a_Entity) { m_Entity = a_Entity; }
cBlockEntity *GetEntity() { return m_Entity; }
2011-10-03 18:41:19 +00:00
private:
cWindow* m_Window;
cBlockEntity *m_Entity;
2012-03-19 09:37:10 +00:00
};