1
0
forked from 0ad/0ad

This was SVN commit r2564.

This commit is contained in:
Matei 2005-07-30 19:22:16 +00:00
parent a18bb56add
commit af3a188200
2 changed files with 31 additions and 0 deletions

View 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;
}

View 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