text: #pragma once
  #include "Physics.h"
  #include "Entity.h"
  #include "App.h"
  #include "p2Point.h"
  #include "Animation.h"
  
  
  class PhysBody;
  
  class Star : public Entity, public b2ContactListener
  {
  public:
  	Star(int x, int y, int id);
  	~Star();
  
  
  	bool Awake(pugi::xml_node& config);
  	bool Start();
  	bool PreUpdate();
  	bool Update(float dt);
  	bool PostUpdate();
  	bool CleanUp();
  
  	bool LoadState(pugi::xml_node&) override;
  	bool SaveState(pugi::xml_node&) override;
  
  	void Die();
  
  	void OnCollision(PhysBody* bodyA, PhysBody* bodyB);
  	void Destroy();
  private:
  	bool setToDestroy = false;
  	bool isAlive = true;
  	p2Point <int> position;
  	PhysBody* starPb;
  	b2Fixture* starSensor;
  
  	SDL_Texture* starTexture;
  
  };
  
  //#endif 
  