1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-16 23:52:03 +00:00

rogueviz:: more overrides, in sag and dhrg

This commit is contained in:
Zeno Rogue
2025-12-11 10:16:19 +01:00
parent a7465aced6
commit 7cd683b706
2 changed files with 3 additions and 3 deletions

View File

@@ -234,7 +234,7 @@ struct dhrg_embedding : public rogueviz::embeddings::tiled_embedding {
}
}
virtual string name() { return "DHRG"; }
virtual string name() override { return "DHRG"; }
};
void graph_from_rv() {

View File

@@ -53,7 +53,7 @@ void save_sag_solution(const fhstream& f);
struct sag_embedding : public rogueviz::embeddings::tiled_embedding {
virtual string name() { return "SAG"; }
virtual string name() override { return "SAG"; }
pair<cell*, hyperpoint> as_location(int id) override {
@@ -80,7 +80,7 @@ struct sag_embedding : public rogueviz::embeddings::tiled_embedding {
return sagdist[sagid[i]][0];
}
void save(fhstream& f) {
void save(fhstream& f) override {
if(!(state & SS_DATA)) throw hr_exception("save_sag_solution with no data");
for(int i=0; i<isize(sagid); i++)
println(f, vdata[i].name, ";", sagid[i]);