Design Patterns
wall.h
Go to the documentation of this file.
1 // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2 // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3 //
4 // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5 
6 #ifndef CREATIONAL_MAZEPARTS_WALL_H_
7 #define CREATIONAL_MAZEPARTS_WALL_H_
8 
9 #include "map_site_interface.h"
10 
11 namespace creational
12 {
13 namespace commons
14 {
15 class Wall : public MapSiteInterface
16 {
17  public:
18  Wall();
19  Wall(const Wall&);
20  virtual ~Wall() override;
21 
22  virtual Wall *Clone() const;
23  virtual void Enter() override;
24  virtual bool entered() const;
25 
26  protected:
27  bool entered_;
28 };
29 }
30 }
31 
32 #endif
33 
bool entered_
Definition: wall.h:27
virtual bool entered() const
Definition: wall.cc:31
Definition: bombed_maze_factory.cc:11
Definition: map_site_interface.h:13
Wall()
Definition: wall.cc:12
Definition: wall.h:15
virtual ~Wall() override
Definition: wall.cc:19
virtual void Enter() override
Definition: wall.cc:26
virtual Wall * Clone() const
Definition: wall.cc:21