Blargh, being sick again is no good! Thankfully I got my iterator assignment all finished up for today.
The main kicker for today was the iterator; the Find function had to be a constant one (despite returning a non-const iterator) so the members and functions called inside it had to also be constant. This applied back to begin() and end() (which, for range-based for loops had to be lowercase) that also had to be const. That said, the iterators also needed a reference to the owner (list) of the iterator, a const value when one calls this.
Heck, there were pitfalls at every turn. Even on my previous assignment, I completely had no idea namespaces were a requirement (Thanks assignment) so I had to whip that up quickly, along with fixing and refactoring the Node class since it had an extra and unnecessary template <typename T> statement above its header.
As for capstone? The warp function's going fairly well! Just got a mark object (fairy circle? Particle effect? Both?) that appears during each mark and the corrupted effect that maintains height. Just gotta not teleport if it's going to run into anything along the way...
No comments:
Post a Comment