You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
virtual int actionCollisionObjects(Object* obj) override;
int updateAnimation();
public:
void startShot(double x0, double y0, int directionAttackX, int directionAttackY, double range, double speed, float angle);
// Óíàñëåäîâàíî ÷åðåç Object
virtual bool animation(int direction) override;
virtual int update(sf::Event) override;
const int getDamage() { return damage; };
void setDamage(const int newDamage) { this->damage = newDamage; };
/*X: 1 - left, 2 - right, Y: 1 - up, 2 - down*/
static void makeShell(sf::String ImageFileAttack, int maxFrameAttackX, int maxFrameAttackY, double speed, int damage, bool enemyKill, Hero& hero, int directionX, int directionY, float angle);