From af3a188200b9ff43b2b24f169200f5ee3697ccbf Mon Sep 17 00:00:00 2001 From: Matei Date: Sat, 30 Jul 2005 19:22:16 +0000 Subject: [PATCH] This was SVN commit r2564. --- source/tools/rmgen/object.cpp | 16 ++++++++++++++++ source/tools/rmgen/object.h | 15 +++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 source/tools/rmgen/object.cpp create mode 100644 source/tools/rmgen/object.h diff --git a/source/tools/rmgen/object.cpp b/source/tools/rmgen/object.cpp new file mode 100644 index 0000000000..1f09428788 --- /dev/null +++ b/source/tools/rmgen/object.cpp @@ -0,0 +1,16 @@ +#include "stdafx.h" +#include "entity.h" + +using namespace std; + +Entity::Entity() { +} + +Entity::Entity(const string& type, int player, float x, float y, float z, float orientation) { + this->type = type; + this->player = player; + this->x = x; + this->y = y; + this->z = z; + this->orientation = orientation; +} \ No newline at end of file diff --git a/source/tools/rmgen/object.h b/source/tools/rmgen/object.h new file mode 100644 index 0000000000..06453d5f5f --- /dev/null +++ b/source/tools/rmgen/object.h @@ -0,0 +1,15 @@ +#ifndef __ENTITY_H__ +#define __ENTITY_H__ + +class Entity { +public: + std::string type; // called "template" in XML? + int player; + float x, y, z; + float orientation; + + Entity(); + Entity(const std::string& type, int player, float x, float y, float z, float orientation); +}; + +#endif \ No newline at end of file