summaryrefslogtreecommitdiff
path: root/src/object.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-07-27 17:20:22 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-07-27 17:20:22 +0000
commitd0b6b3d1c96e437d12410703a8e530decd0b028f (patch)
treef3568279aa6c31594f525f061efc6eda08278635 /src/object.cpp
parent285b40d1cb768e235aed894f4704e1013cb054ea (diff)
downloadmanaserv-d0b6b3d1c96e437d12410703a8e530decd0b028f.tar.gz
manaserv-d0b6b3d1c96e437d12410703a8e530decd0b028f.tar.bz2
manaserv-d0b6b3d1c96e437d12410703a8e530decd0b028f.tar.xz
manaserv-d0b6b3d1c96e437d12410703a8e530decd0b028f.zip
First step toward a restructured class hierarchy for world actors: add
MovingObject and Player classes.
Diffstat (limited to 'src/object.cpp')
-rw-r--r--src/object.cpp129
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