added automatic conversion of Map::Vertex into xyz_location

This commit is contained in:
Arthur Ice 2014-11-26 21:25:09 -08:00
parent 4094d43c49
commit 5b783e84e9

View File

@ -22,6 +22,7 @@
#ifndef ZONE_MAP_H #ifndef ZONE_MAP_H
#define ZONE_MAP_H #define ZONE_MAP_H
#include "position.h"
#include <stdio.h> #include <stdio.h>
#include <string> #include <string>
@ -40,6 +41,10 @@ public:
{ {
return((v.x == x) && (v.y == y) && (v.z == z)); return((v.x == x) && (v.y == y) && (v.z == z));
} }
operator xyz_location() const
{
return xyz_location(x,y,z);
}
float x; float x;
float y; float y;