Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. //simple_world
  2.  
  3. #ifndef EXECUTION_SIMPLE_WORLD_H
  4. #define EXECUTION_SIMPLE_WORLD_H
  5. #include "execution/interfaces/world.h"
  6. #include "execution/interfaces/cell.h"
  7.  
  8. namespace execution {
  9.  
  10. class SimpleWorld : WorldInterface {
  11.  
  12.  public:
  13.  
  14.   virtual SimpleWorld(const char *name) {
  15.     name_ = name;
  16.   }
  17.  
  18.   virtual
  19.  
  20.   virtual const char *GetName() {
  21.     return name_;
  22.   }
  23.  
  24.  
  25.  private:
  26.   const char *name_;
  27.  
  28. };
  29.  
  30. class SimpleCellFactory : public CellFactoryInterface {
  31.  
  32.   ~SimpleCellFactory() override = default;
  33.  
  34.  
  35.  
  36. };
  37.  
  38. }
  39. #endif //EXECUTION_SIMPLE_WORLD_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement