#include "stdafx.h"
#include "rmgen.h"
#include "output.h"
#include "map.h"
#include "object.h"
#include "pmp_file.h"
using namespace std;
void OutputObject(Map* m, Object* e, ostringstream& xml) {
float height = m->getExactHeight(e->x, e->y);
if(e->isEntity()) {
xml << "\
\n\
" << e->name << "\n\
" << e->player << "\n\
x << "\" y=\"" << height << "\" z=\"" << 4*e->y << "\" />\n\
orientation << "\" />\n\
\n";
}
else {
xml << "\
\n\
" << e->name << "\n\
x << "\" y=\"" << height << "\" z=\"" << 4*e->y << "\" />\n\
orientation << "\" />\n\
\n";
}
}
void OutputObjects(ostringstream& xml, Map* m, bool entities) {
for(int i=0; iobjects.size(); i++) {
if(m->objects[i]->isEntity() == entities) {
OutputObject(m, m->objects[i], xml);
}
}
for(int x=0; xsize; x++) {
for(int y=0; ysize; y++) {
vector