Represents a collection of shops that can be visited. More...
#include <Visitor_Village.h>
Public Member Functions | |
void | LoadVillage () |
Load the village. | |
void | Accept (Visitor *visitor) |
Public Attributes | |
std::string | Name |
Name of this village. | |
Private Attributes | |
std::vector< Visitor_Shop::unique_ptr_t > | shops |
List of shops in this village. | |
Represents a collection of shops that can be visited.
This class works as the container of all objects that can be visited. All visits start in this container.
Definition at line 24 of file cplusplus/Visitor_Village.h.
void Accept | ( | Visitor * | visitor | ) |
Definition at line 146 of file Visitor_Village.cpp.
References Visitor_Village::shops.
Referenced by Visitor_Shop::PlaceOrder().
void LoadVillage | ( | ) |
Load the village.
Definition at line 13 of file Visitor_Village.cpp.
References Visitor_Village::Name, and Visitor_Village::shops.
std::string Name |
Name of this village.
Definition at line 36 of file cplusplus/Visitor_Village.h.
Referenced by Visitor_Village::LoadVillage(), Visitor_Shop::PickupOrder(), Visitor_Shop::PlaceOrder(), and EntryInformation::ToString().
|
private |
List of shops in this village.
Definition at line 30 of file cplusplus/Visitor_Village.h.
Referenced by Visitor_Village::Accept(), and Visitor_Village::LoadVillage().