inttype;//type of animation being displayed (-1 - whole animation, >0 - specified part [default: -1])
intfullWidth,fullHeight;//read-only, please!
CCreatureAnimation(std::stringname);//c-tor
~CCreatureAnimation();//d-tor
voidsetType(inttype);//sets type of animation and cleares framecount
intgetType()const;//returns type of animation
intnextFrame(SDL_Surface*dest,intx,inty,boolattacker,boolincrementFrame=true,boolyellowBorder=false,SDL_Rect*destRect=NULL);//0 - success, any other - error //print next
intnextFrameMiddle(SDL_Surface*dest,intx,inty,boolattacker,boolIncrementFrame=true,boolyellowBorder=false,SDL_Rect*destRect=NULL);//0 - success, any other - error //print next
voidincrementFrame();
intgetFrame()const;
intframesInGroup(intgroup)const;//retirns number of fromes in given group