Design Patterns
bombed_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_BOMBED_WALL_H_
7 #define CREATIONAL_MAZEPARTS_BOMBED_WALL_H_
8 
9 #include "wall.h"
10 
11 namespace creational
12 {
13 namespace commons
14 {
15 class BombedWall : public Wall
16 {
17  public:
18  explicit BombedWall(const bool& bombed);
19  BombedWall(const BombedWall&);
20 
21  virtual BombedWall *Clone() const override;
22  virtual void Enter() override;
23  void Intialize(const bool& bombed);
24  bool bombed() const;
25 
26  private:
27  bool bombed_;
28 };
29 }
30 }
31 
32 #endif
33 
void Intialize(const bool &bombed)
Definition: bombed_wall.cc:24
Definition: bombed_maze_factory.cc:11
bool bombed() const
Definition: bombed_wall.cc:29
virtual BombedWall * Clone() const override
Definition: bombed_wall.cc:19
virtual void Enter() override
Definition: bombed_wall.cc:34
Definition: wall.h:15
Definition: bombed_wall.h:15
BombedWall(const bool &bombed)
Definition: bombed_wall.cc:12