Design Patterns
creational::commons::EnchantedRoom Class Reference

#include <enchanted_room.h>

Inheritance diagram for creational::commons::EnchantedRoom:
Collaboration diagram for creational::commons::EnchantedRoom:

Public Member Functions

 EnchantedRoom (const EnchantedRoom &)
 
 EnchantedRoom (const int &room_number, const Spell &spell)
 
EnchantedRoomClone () const override
 
bool HasSpell () const
 
void Initialize (const Spell &spell)
 
Spell PickUpSpell () const
 
- Public Member Functions inherited from creational::commons::Room
 Room (const int &room_number)
 
 Room (const Room &room)
 
virtual void Enter () override
 
virtual bool entered () const
 
MapSiteInterfaceGetSide (const Direction &) const
 
int room_number () const
 
void SetSide (const Direction &, MapSiteInterface *)
 
- Public Member Functions inherited from creational::commons::MapSiteInterface
virtual ~MapSiteInterface ()
 

Additional Inherited Members

- Protected Attributes inherited from creational::commons::Room
int room_number_
 

Constructor & Destructor Documentation

creational::commons::EnchantedRoom::EnchantedRoom ( const EnchantedRoom room)

Here is the caller graph for this function:

creational::commons::EnchantedRoom::EnchantedRoom ( const int &  room_number,
const Spell spell 
)
explicit

Member Function Documentation

EnchantedRoom * creational::commons::EnchantedRoom::Clone ( ) const
overridevirtual

Reimplemented from creational::commons::Room.

Here is the call graph for this function:

bool creational::commons::EnchantedRoom::HasSpell ( ) const
void creational::commons::EnchantedRoom::Initialize ( const Spell spell)
Spell creational::commons::EnchantedRoom::PickUpSpell ( ) const

The documentation for this class was generated from the following files: