summaryrefslogtreecommitdiff
path: root/src/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.h')
-rw-r--r--src/object.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/object.h b/src/object.h
index fbc49cd8..b8640285 100644
--- a/src/object.h
+++ b/src/object.h
@@ -24,15 +24,14 @@
#ifndef _TMWSERV_OBJECT_H_
#define _TMWSERV_OBJECT_H_
-
#include <utility>
#include <string>
-
+#include <vector>
+#include "utils/countedptr.h"
namespace tmwserv
{
-
/**
* Structure type for the statistics.
*
@@ -52,7 +51,6 @@ struct Statistics
int speed;
};
-
/**
* Generic in-game object definition.
* Base class for in-game objects.
@@ -179,6 +177,16 @@ class Object
unsigned int mMapId; /**< id of the map being is on */
};
+/**
+ * Type definition for a smart pointer to Object.
+ */
+typedef utils::CountedPtr<Object> ObjectPtr;
+
+
+/**
+ * Type definition for a list of Objects.
+ */
+typedef std::vector<ObjectPtr> Objects;
} // namespace tmwserv