boss.hpp 533 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _boss_hpp
  2. #define _boss_hpp
  3. #include "enemy.hpp"
  4. #include "pic.hpp"
  5. #include <cstring>
  6. typedef std::list<bullet> b_list;
  7. class boss: public enemy, public pic
  8. {
  9. public:
  10. boss() { id=16; alive=false; }
  11. boss(int x, int y, int life, int w, int h, std::string newname); //id is automatically set to 16, alive set to FALSE
  12. void next_pos();
  13. //inheriting direction from enemy
  14. int health,healthmax;
  15. std::string name;
  16. void set_life(int);
  17. void shoot(std::list<bullet> & bullets);
  18. boss& operator=(boss&);
  19. };
  20. #endif