You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
422 B

  1. #pragma once
  2. #include "config.h"
  3. #include "object.h"
  4. #include <iostream>
  5. #include <list>
  6. #include <vector>
  7. class World {
  8. size_t m_height, m_width;
  9. std::vector<std::vector<char>> m_c;
  10. std::list<Object> m_objects;
  11. public:
  12. World();
  13. void init();
  14. Object &createObject(Object &&);
  15. void draw(Object &o);
  16. void update();
  17. void print(std::ostream &out);
  18. void destroy();
  19. ~World();
  20. };