0ad/source/tools/rmgen/object.cpp

23 lines
438 B
C++
Raw Normal View History

2005-07-30 21:22:16 +02:00
#include "stdafx.h"
2005-07-30 22:57:18 +02:00
#include "object.h"
2005-07-30 21:22:16 +02:00
using namespace std;
2005-07-30 22:57:18 +02:00
Object::Object() {
2005-07-30 21:22:16 +02:00
}
2005-07-30 22:57:18 +02:00
Object::Object(const string& name, int player, float x, float y, float z, float orientation) {
this->name = name;
2005-07-30 21:22:16 +02:00
this->player = player;
this->x = x;
this->y = y;
this->z = z;
this->orientation = orientation;
2005-07-30 22:57:18 +02:00
}
bool Object::isEntity() {
for(int i=0; i<name.size(); i++) {
if(name[i]=='/') return false;
}
return true;
2005-07-30 21:22:16 +02:00
}