Not entirely sure what you are asking, but if you want a better way I would replace isWalking with a value saying what it is doing, assuming your object cannot be doing multiple things. Make an enumeration containing all the things the object could be doing.
Eg:
enum objAction{
walking=0,
shooting=1,
idle=2
};
then maybe make
objAction Stats.action;
and use a switch statement to decide what animation to use:
switch(Stats.action){
case walking:
dbSetObjectSpeed( this->ObjNr , 50 );
dbLoopObject( this->ObjNr , 0 , 25);
break;
case shooting:
//whatever
break;
default://could also use "case idle:", but this runs if there is another unused value
dbStopObject( this->ObjNr );
break;
}