summaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
authorCiaran Gultnieks <ciaran@ciarang.com>2011-05-20 20:28:03 +0100
committerCiaran Gultnieks <ciaran@ciarang.com>2011-05-20 20:28:03 +0100
commitd4d49ee8f4d425e7a4136d65f519728869680951 (patch)
tree432202d226ebf03de47210ea5172d589815ab47e /src/client.h
parentb5ceaf445a68b9cda47fbd4246f074aa0a1d3966 (diff)
downloadminetest-d4d49ee8f4d425e7a4136d65f519728869680951.tar.gz
minetest-d4d49ee8f4d425e7a4136d65f519728869680951.tar.bz2
minetest-d4d49ee8f4d425e7a4136d65f519728869680951.zip
Passwords - password entry at main menu, stored and checked by server
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h
index ee73cc42c..222f83ab7 100644
--- a/src/client.h
+++ b/src/client.h
@@ -207,6 +207,7 @@ public:
Client(
IrrlichtDevice *device,
const char *playername,
+ std::string password,
MapDrawControl &control
);
@@ -377,6 +378,11 @@ public:
// Get event from queue. CE_NONE is returned if queue is empty.
ClientEvent getClientEvent();
+ inline bool accessDenied()
+ {
+ return m_access_denied;
+ }
+
private:
// Virtual methods from con::PeerHandler
@@ -430,6 +436,9 @@ private:
// The seed returned by the server in TOCLIENT_INIT is stored here
u64 m_map_seed;
+ std::string m_password;
+ bool m_access_denied;
+
InventoryContext m_inventory_context;
Queue<ClientEvent> m_client_event_queue;