1
0

Source files cleanup: UI files renamed

git-svn-id: http://mc-server.googlecode.com/svn/trunk@878 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2012-09-23 17:19:34 +00:00
parent a3b7dbb13d
commit f58c3f2e81
15 changed files with 29 additions and 32 deletions

View File

@@ -9,7 +9,7 @@
#include "../cChestEntity.h"
#include "../cFurnaceEntity.h"
#include "../Items/Item.h"
#include "cWindow.h"
#include "Window.h"
#include "../CraftingRecipes.h"
#include "../cRoot.h"

View File

@@ -1,13 +1,13 @@
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "cWindow.h"
#include "Window.h"
#include "../cItem.h"
#include "../cClientHandle.h"
#include "../cPlayer.h"
#include "../cPickup.h"
#include "../cInventory.h"
#include "cWindowOwner.h"
#include "WindowOwner.h"
#include "../items/Item.h"
#include "SlotArea.h"
#include "../cChestEntity.h"
@@ -94,8 +94,6 @@ void cWindow::Clicked(
const cItem & a_ClickedItem
)
{
LOGD("cWindow::Clicked(): ID %d (exp %d), SlotNum %d", a_WindowID, m_WindowID, a_SlotNum);
if (a_WindowID != m_WindowID)
{
LOG("WRONG WINDOW ID! (exp %d, got %d) received from \"%s\"", m_WindowID, a_WindowID, a_Player.GetName().c_str());
@@ -121,7 +119,6 @@ void cWindow::Clicked(
{
if (LocalSlotNum < (*itr)->GetNumSlots())
{
LOGD("SlotArea #%d (%d slots) handling the click", idx, (*itr)->GetNumSlots());
(*itr)->Clicked(a_Player, LocalSlotNum, a_IsRightClick, a_IsShiftPressed, a_ClickedItem);
return;
}

View File

@@ -1,5 +1,5 @@
// cWindow.h
// Window.h
// Interfaces to the cWindow class representing a UI window for a specific block

View File

@@ -3,7 +3,7 @@
#include "../cBlockEntity.h"
#include "../cEntity.h"
#include "cWindow.h"
#include "Window.h"
/*
Being a descendant of cWindowOwner means that the class can own one window. That window can be