Change how animstate is accessed

This commit is contained in:
2021-03-28 13:27:28 -04:00
parent 3e424f3fa6
commit f88fafc585
4 changed files with 34 additions and 52 deletions

View File

@@ -83,8 +83,8 @@ void TextGame::do_view_command(const StringVec &cmd) {
}
for (int64_t id : world_->get_near(1, 100, true)) {
const Tangible *tan = world_->tangible_get(id);
const AnimQueue &aq = tan->anim_queue_;
std::cerr << id << ": " << aq.get_graphic() << " " << aq.get_plane() << " " << aq.get_xyz() << std::endl;
const AnimStep &aqback = tan->anim_queue_.back();
std::cerr << id << ": " << aqback.graphic() << " " << aqback.plane() << " " << aqback.xyz() << std::endl;
}
}