mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-03-09 22:59:43 +00:00
rogueviz:: embeddings:: added missing overrides
This commit is contained in:
@@ -16,11 +16,11 @@ namespace embeddings {
|
||||
return coords[id];
|
||||
}
|
||||
|
||||
virtual string name() { return "coordinates: " + format_names[(int) coord_format]; }
|
||||
virtual string name() override { return "coordinates: " + format_names[(int) coord_format]; }
|
||||
|
||||
ld zero_distance(int id) { return hdist0(coords[id]); }
|
||||
ld zero_distance(int id) override { return hdist0(coords[id]); }
|
||||
|
||||
ld distance(int i, int j) {
|
||||
ld distance(int i, int j) override {
|
||||
return precise_hdist(coords[i], coords[j]);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ vector<vector<int> > directed_edges;
|
||||
rogueviz::edgetype *any;
|
||||
|
||||
struct rv_embedding : public tiled_embedding {
|
||||
virtual string name() { return "RogueViz internal representation"; }
|
||||
virtual string name() override { return "RogueViz internal representation"; }
|
||||
pair<cell*, hyperpoint> as_location(int id) override {
|
||||
return { vdata[id].m->base, vdata[id].m->at * C0 };
|
||||
}
|
||||
|
||||
@@ -20,9 +20,9 @@ namespace embeddings {
|
||||
return spin(coords[id].theta) * xpush0(coords[id].r);
|
||||
}
|
||||
|
||||
ld zero_distance(int id) { return coords[id].r; }
|
||||
ld zero_distance(int id) override { return coords[id].r; }
|
||||
|
||||
ld distance(int i, int j) {
|
||||
ld distance(int i, int j) override {
|
||||
ld da = coords[i].r;
|
||||
ld db = coords[j].r;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user