summaryrefslogtreecommitdiff
path: root/src/beingcacheentry.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-31 22:42:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-31 22:42:10 +0300
commit00cda69b883d6354f093be6ee39a7936cb798979 (patch)
treef1daa290abfb53180bd8420a45fe6dff1c7a2ab3 /src/beingcacheentry.h
parent5919cdc663d5f60a8c5cc7e50ad0c43a18cf9829 (diff)
downloadplus-00cda69b883d6354f093be6ee39a7936cb798979.tar.gz
plus-00cda69b883d6354f093be6ee39a7936cb798979.tar.bz2
plus-00cda69b883d6354f093be6ee39a7936cb798979.tar.xz
plus-00cda69b883d6354f093be6ee39a7936cb798979.zip
move being related files into being dir.
Diffstat (limited to 'src/beingcacheentry.h')
-rw-r--r--src/beingcacheentry.h128
1 files changed, 0 insertions, 128 deletions
diff --git a/src/beingcacheentry.h b/src/beingcacheentry.h
deleted file mode 100644
index d342b1c8d..000000000
--- a/src/beingcacheentry.h
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * The ManaPlus Client
- * Copyright (C) 2011-2013 The ManaPlus Developers
- *
- * This file is part of The ManaPlus Client.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef BEINGCACHEENTRY_H
-#define BEINGCACHEENTRY_H
-
-#include "localconsts.h"
-
-#include <string>
-
-class BeingCacheEntry final
-{
- public:
- explicit BeingCacheEntry(const int id):
- mName(),
- mPartyName(),
- mGuildName(),
- mIp(),
- mId(id),
- mLevel(0),
- mPvpRank(0),
- mTime(0),
- mFlags(0),
- mIsAdvanced(false)
- {
- }
-
- A_DELETE_COPY(BeingCacheEntry)
-
- int getId() const
- { return mId; }
-
- /**
- * Returns the name of the being.
- */
- const std::string &getName() const
- { return mName; }
-
- /**
- * Sets the name for the being.
- *
- * @param name The name that should appear.
- */
- void setName(const std::string &name)
- { mName = name; }
-
- /**
- * Following are set from the server (mainly for players)
- */
- void setPartyName(const std::string &name)
- { mPartyName = name; }
-
- void setGuildName(const std::string &name)
- { mGuildName = name; }
-
- const std::string &getPartyName() const
- { return mPartyName; }
-
- const std::string &getGuildName() const
- { return mGuildName; }
-
- void setLevel(const int n)
- { mLevel = n; }
-
- int getLevel() const
- { return mLevel; }
-
- void setTime(const int n)
- { mTime = n; }
-
- int getTime() const
- { return mTime; }
-
- unsigned getPvpRank() const
- { return mPvpRank; }
-
- void setPvpRank(const int r)
- { mPvpRank = r; }
-
- std::string getIp() const
- { return mIp; }
-
- void setIp(std::string ip)
- { mIp = ip; }
-
- bool isAdvanced() const
- { return mIsAdvanced; }
-
- void setAdvanced(const bool a)
- { mIsAdvanced = a; }
-
- int getFlags() const
- { return mFlags; }
-
- void setFlags(const int flags)
- { mFlags = flags; }
-
- protected:
- std::string mName; /**< Name of character */
- std::string mPartyName;
- std::string mGuildName;
- std::string mIp;
- int mId; /**< Unique sprite id */
- int mLevel;
- unsigned int mPvpRank;
- int mTime;
- int mFlags;
- bool mIsAdvanced;
-};
-
-#endif // BEINGCACHEENTRY_H