mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 16:33:36 +00:00
26 lines
553 B
C++
26 lines
553 B
C++
#pragma once
|
|
#include "../Screen.h"
|
|
class ClientConnection;
|
|
class Minecraft;
|
|
|
|
class ConnectScreen : public Screen {
|
|
private:
|
|
ClientConnection* connection;
|
|
bool aborted;
|
|
|
|
public:
|
|
ConnectScreen(Minecraft* minecraft, const std::wstring& ip, int port);
|
|
virtual void tick() override;
|
|
|
|
protected:
|
|
virtual void keyPressed(char eventCharacter, int eventKey);
|
|
|
|
public:
|
|
virtual void init() override;
|
|
|
|
protected:
|
|
virtual void buttonClicked(Button* button) override;
|
|
|
|
public:
|
|
virtual void render(int xm, int ym, float a) override;
|
|
}; |