i have class Enemy, which has private (it could be public) members that shows which animation is currently being played, and which not.
Code: Select all
struct anim {
bool run;
bool attack;
};
class Enemy {
..............
anim EnemyAnim;
.............
};
And one more thing : in the main.cpp i'd only have to create an instance of Enemy class. Any help will be appreciated !