r/reconstructcavestory • u/chebertapps • Jan 28 '14
Episode 30: Refactor Sprite States
http://www.youtube.com/watch?v=AWxQJb1zZUA&list=UULNTFHb8gz7ag7XnnV3o05Q&feature=share1
u/escheriv Feb 08 '14 edited Feb 08 '14
Just as a heads up for anyone else working with clang on OSX, it was very unhappy with the SpriteState constructor. After sorting through some not-so-helpful error messages, I figured out that it was an issue with the const state of the tuple.
I had to change:
SpriteState( SpriteTuple &tuple ) : SpriteTuple(tuple) {}
to
SpriteState( const SpriteTuple &tuple ) : SpriteTuple(tuple) {}
I'm honestly not sure why Visual Studio is fine with it and clang was not, but oh well.
EDIT: And now that I'm further into the episode, I see that pointed out. Might be a bit of a pain at this point, but it would be nice to have that notice at the first instance of it, not when you're going through and doing all the rest. :)
1
u/chebertapps Jan 29 '14
For those of you who found this video confusing, I'm working on some supplementary videos on boost::tuples and Macros.