0ad/source/tools/rmgen/object.cpp
Matei 467b14e928 - Added stay-in-tile-class and border-tile-class constraints.
- Made objects snap to terrain (the game does this automatically for
entities but it was a problem with actors)
- Small enhancements to the RMS API
- New version of cantabrian_highlands

This was SVN commit r2688.
2005-09-08 01:20:51 +00:00

22 lines
414 B
C++

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