Represents a collection of shops that can be visited. More...
Public Member Functions | |
void | LoadVillage () |
Load the village. | |
void | Accept (Visitor visitor) |
The visitor will call this method on each element it wants to visit. | |
void | Accept (Visitor visitor) |
The visitor will call this method on each element it wants to visit. | |
Public Attributes | |
string | Name = string.Empty |
Name of this village. | |
Private Attributes | |
List< Visitor_Shop > | shops = new List<Visitor_Shop>() |
List of Visitor_Shop class-derived shops in this village that can be visited. | |
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 16 of file Visitor_Village.cs.
|
inline |
The visitor will call this method on each element it wants to visit.
visitor | The visitor. |
Implements ISupportVisitors.
Definition at line 138 of file Visitor_Village.cs.
References Village.shops.
Referenced by Visitor_Shop.PlaceOrder(), and Visitor_Exercise.Run().
|
inline |
Load the village.
Definition at line 31 of file Visitor_Village.cs.
References Village.Name, and Village.shops.
Referenced by Visitor_Exercise.Run().
string Name = string.Empty |
Name of this village.
Definition at line 21 of file Visitor_Village.cs.
Referenced by Village.LoadVillage(), Visitor_Shop.PickupOrder(), Visitor_Shop.PlaceOrder(), Visitor_Exercise.Run(), and EntryInformation.ToString().
|
private |
List of Visitor_Shop class-derived shops in this village that can be visited.
Definition at line 26 of file Visitor_Village.cs.
Referenced by Village.Accept(), and Village.LoadVillage().