Design Patterns
door_needing_spell.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_DOOR_NEEDING_SPELL_H_
7 #define CREATIONAL_MAZEPARTS_DOOR_NEEDING_SPELL_H_
8 
9 #include "door.h"
10 #include "room.h"
11 #include "spell.h"
12 
13 namespace creational
14 {
15 namespace commons
16 {
17 class DoorNeedingSpell : public Door
18 {
19  public:
21  DoorNeedingSpell(const Room& first_room, const Room& second_room);
22 
23  static bool TrySpell(const Spell&);
24 };
25 }
26 }
27 
28 #endif
29 
Definition: spell.h:15
Definition: bombed_maze_factory.cc:11
Definition: room.h:16
static bool TrySpell(const Spell &)
Definition: door_needing_spell.cc:16
Definition: door_needing_spell.h:17
Definition: door.h:16
DoorNeedingSpell(const DoorNeedingSpell &)
Definition: door_needing_spell.cc:14