X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FSimpleAnimation.h;h=d15c1d9a1258e19bd1ff1f08021fe2f3620c74bd;hb=843c216fec572902bfae1fce95671b0d17aef946;hp=3354328b5e6cb5281ba69d6f35d14df05f40704c;hpb=ebeefe8b81fbb2e69939d67972453c01b023ec22;p=l2e.git diff --git a/src/graphics/SimpleAnimation.h b/src/graphics/SimpleAnimation.h index 3354328..d15c1d9 100644 --- a/src/graphics/SimpleAnimation.h +++ b/src/graphics/SimpleAnimation.h @@ -22,9 +22,9 @@ public: : Animation(sprite, frameTime, repeat), numFrames(numFrames), col(col), row(row) { } protected: - virtual int Col() const { return col; } - virtual int Row() const { return row + Frame(); } virtual int NumFrames() const { return numFrames; }; + virtual int Col(int frame) const { return col; } + virtual int Row(int frame) const { return row + frame; } private: int numFrames;