diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-10-10 22:14:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-10-10 22:15:57 +0300 |
commit | aa3f63fd497558a02feb3ddbc44f31eac091f39b (patch) | |
tree | 0e28b9b1f0501dd8be9e1a38db4ec1777fa3fbfa /src/mumblemanager.h | |
parent | 7c10a6b61e9d06a4ae9cc9f942dfacb6fcfd9d3d (diff) | |
download | manaverse-aa3f63fd497558a02feb3ddbc44f31eac091f39b.tar.gz manaverse-aa3f63fd497558a02feb3ddbc44f31eac091f39b.tar.bz2 manaverse-aa3f63fd497558a02feb3ddbc44f31eac091f39b.tar.xz manaverse-aa3f63fd497558a02feb3ddbc44f31eac091f39b.zip |
Remove most unused files.
Diffstat (limited to 'src/mumblemanager.h')
-rw-r--r-- | src/mumblemanager.h | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/src/mumblemanager.h b/src/mumblemanager.h deleted file mode 100644 index 4a3361a75..000000000 --- a/src/mumblemanager.h +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code taken from: http://mumble.sourceforge.net/Link - * - * All code listed below is in the public domain and can be used, shared or - * modified freely - * - * Copyright (C) 2011-2017 The ManaPlus Developers - */ - -#ifndef MUMBLEMANAGER_H -#define MUMBLEMANAGER_H - -#ifdef USE_MUMBLE - -#include <string> -#if defined (__FreeBSD__) || (defined __DragonFly__) -#include <sys/stat.h> -#endif // defined (__FreeBSD__) || (defined __DragonFly__) - -#include "localconsts.h" - -struct LinkedMem final -{ - LinkedMem() : - uiVersion(0U), - uiTick(0U), - fAvatarPosition(), - fAvatarFront(), - fAvatarTop(), - name(), - fCameraPosition(), - fCameraFront(), - fCameraTop(), - identity(), - context_len(0U), - context(), - description() - { } - - A_DELETE_COPY(LinkedMem) - - uint32_t uiVersion; - uint32_t uiTick; - float fAvatarPosition[3]; - float fAvatarFront[3]; - float fAvatarTop[3]; - wchar_t name[256]; - float fCameraPosition[3]; - float fCameraFront[3]; - float fCameraTop[3]; - wchar_t identity[256]; - uint32_t context_len; - char context[256]; - wchar_t description[2048]; -}; - -class MumbleManager final -{ - public: - MumbleManager(); - - A_DELETE_COPY(MumbleManager) - - ~MumbleManager(); - - void init(); - - void setPlayer(const std::string &userName); - - void setAction(const int action); - - void setPos(const int tileX, const int tileY, const int direction); - - void setMap(const std::string &mapName); - - void setServer(const std::string &serverName); - - private: - static uint16_t getMapId(std::string mapName) A_WARN_UNUSED; - - void setMapBase(uint16_t mapid); - - LinkedMem *mLinkedMem; - LinkedMem mLinkedMemCache; - float mMapBase[3]; -}; - -extern MumbleManager *mumbleManager; - -#endif // USE_MUMBLE -#endif // MUMBLEMANAGER_H |