1234567891011121314151617181920212223242526272829 |
- #ifndef _boss_hpp
- #define _boss_hpp
- #include "enemy.hpp"
- #include "pic.hpp"
- #include <cstring>
- typedef std::list<bullet> b_list;
- class boss: public enemy, public pic
- {
- public:
- boss() { id=16; alive=false; }
-
- boss(int x, int y, int life, int w, int h, std::string newname); //id is automatically set to 16, alive set to FALSE
-
- void next_pos();
- //inheriting direction from enemy
- int health,healthmax;
- std::string name;
- void set_life(int);
- void shoot(std::list<bullet> & bullets);
-
- boss& operator=(boss&);
-
- };
- #endif
|