Matei
467b14e928
- 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.
22 lines
414 B
C++
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;
|
|
} |