1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef __PELLET_HPP__ #define __PELLET_HPP__ #include "Entity.hpp" class Pellet : public Entity { public: void startup(SimBase *sim); void update(); void draw(); bool isCreated() const { return body ? true : false; } bool toBeDestroyed = false; private: void destroy(); }; #endif // __PELLET_HPP__