La simu multi-agents qui repeint une image, mais en c++ Boilerplate pompé ici : https://github.com/andrew-r-king/sfml-vscode-boilerplate
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Perception.hpp 377B

1234567891011121314151617
  1. #ifndef PERCEPTION_H
  2. #define PERCEPTION_H
  3. class Perception
  4. { // The class
  5. public: // Access specifier
  6. int fWidth; // Attribute (int variable)
  7. int fHeight; // Attribute
  8. std::vector<uint32_t> fSurroundings;
  9. Perception();
  10. Perception(int iWidth, int iHeight);
  11. void setXY(uint32_t iValue, int iX, int iY);
  12. uint32_t getXY(int iX, int iY);
  13. };
  14. #endif // PERCEPTION_H