This was SVN commit r2564.
This commit is contained in:
parent
a18bb56add
commit
af3a188200
16
source/tools/rmgen/object.cpp
Normal file
16
source/tools/rmgen/object.cpp
Normal file
@ -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;
|
||||||
|
}
|
15
source/tools/rmgen/object.h
Normal file
15
source/tools/rmgen/object.h
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user