Guest User

Stuff

a guest
May 21st, 2016
220
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Quadrat{
  2. public:
  3.  
  4.     Quadrat(int ax, int ay);
  5.  
  6.     void draw(const mat4f& proj);
  7.  
  8.     bool hasNeighboor(int ax, int ay);
  9.     void vorstellen(Quadrat& potenz);
  10.  
  11.     void setState(QuadratState a_state);
  12.     void setAir(float a_air);
  13.  
  14.     void flow();
  15.  
  16.     int x, y;
  17.     float air;
  18.     float oldAir;
  19.  
  20. protected:
  21.  
  22.     const float halfSize = 0.5f;
  23.  
  24.     std::vector<Quadrat*> nachbarn;
  25.  
  26.     QuadratState state;
  27.     float health;
  28.  
  29.     Quadratdrawer* m_drawer;
  30.     static Quadratdrawcontainer drawcontainer;
  31.  
  32. private:
  33.  
  34.     static std::string m_name;
  35. };
RAW Paste Data