aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/ReceivingLevelScreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/ReceivingLevelScreen.cpp')
-rw-r--r--Minecraft.Client/ReceivingLevelScreen.cpp47
1 files changed, 47 insertions, 0 deletions
diff --git a/Minecraft.Client/ReceivingLevelScreen.cpp b/Minecraft.Client/ReceivingLevelScreen.cpp
new file mode 100644
index 00000000..0e9fe3ec
--- /dev/null
+++ b/Minecraft.Client/ReceivingLevelScreen.cpp
@@ -0,0 +1,47 @@
+#include "stdafx.h"
+#include "ReceivingLevelScreen.h"
+#include "ClientConnection.h"
+#include "..\Minecraft.World\net.minecraft.locale.h"
+
+ReceivingLevelScreen::ReceivingLevelScreen(ClientConnection *connection)
+{
+ tickCount = 0;
+ this->connection = connection;
+}
+
+void ReceivingLevelScreen::keyPressed(char eventCharacter, int eventKey)
+{
+}
+
+void ReceivingLevelScreen::init()
+{
+ buttons.clear();
+}
+
+void ReceivingLevelScreen::tick()
+{
+ tickCount++;
+ if (tickCount % 20 == 0)
+ {
+ connection->send( shared_ptr<KeepAlivePacket>( new KeepAlivePacket() ) );
+ }
+ if (connection != NULL)
+ {
+ connection->tick();
+ }
+}
+
+void ReceivingLevelScreen::buttonClicked(Button *button)
+{
+}
+
+void ReceivingLevelScreen::render(int xm, int ym, float a)
+{
+ renderDirtBackground(0);
+
+ Language *language = Language::getInstance();
+
+ drawCenteredString(font, language->getElement(L"multiplayer.downloadingTerrain"), width / 2, height / 2 - 50, 0xffffff);
+
+ Screen::render(xm, ym, a);
+} \ No newline at end of file