diff options
Diffstat (limited to 'src/object.cpp')
-rw-r--r-- | src/object.cpp | 129 |
1 files changed, 0 insertions, 129 deletions
diff --git a/src/object.cpp b/src/object.cpp index 82be242a..cab2622e 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -22,132 +22,3 @@ #include "object.h" - - -namespace tmwserv -{ - - -/** - * Default constructor. - */ -Object::Object(void) - : mNeedUpdate(false), - mX(0), - mY(0) -{ - mStats.health = 0; - mStats.attack = 0; - mStats.defense = 0; - mStats.magic = 0; - mStats.accuracy = 0; - mStats.speed = 0; -} - - -/** - * Destructor. - */ -Object::~Object(void) - throw() -{ - // NOOP -} - - -/** - * Set the x coordinate. - */ -void -Object::setX(unsigned int x) -{ - mX = x; -} - - -/** - * Get the x coordinate. - */ -unsigned int -Object::getX(void) const -{ - return mX; -} - - -/** - * Set the y coordinate. - */ -void -Object::setY(unsigned int y) -{ - mY = y; -} - - -/** - * Get the y coordinate. - */ -unsigned int -Object::getY(void) const -{ - return mY; -} - - -/** - * Set the coordinates. - */ -void -Object::setXY(unsigned int x, unsigned int y) -{ - mX = x; - mY = y; -} - - -/** - * Get the coordinates. - */ -std::pair<unsigned int, unsigned int> -Object::getXY(void) const -{ - return std::make_pair(mX, mY); -} - - -/** - * Set the statistics. - */ -void -Object::setStatistics(const Statistics& stats) -{ - mStats = stats; -} - - -/** - * Get the statistics. - */ -Statistics& -Object::getStatistics(void) -{ - if (mNeedUpdate) { - update(); - } - - return mStats; -} - -unsigned int -Object::getMapId() const -{ - return mMapId; -} - -void -Object::setMapId(const unsigned int mapId) { - mMapId = mapId; -} - -} // namespace tmwserv |