La simu multi-agents qui repeint une image, mais en c++ Boilerplate pompé ici : https://github.com/andrew-r-king/sfml-vscode-boilerplate
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Perception.hpp 291B

123456789101112131415
  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<bool> fMovements;
  9. Perception();
  10. Perception(int iWidth, int iHeight);
  11. };
  12. #endif // PERCEPTION_H