Add TickResult authored by Karikó Csongor Csanád's avatar Karikó Csongor Csanád
......@@ -57,17 +57,29 @@ package Model.Common {
- people : Person[]
- map : Map
- park : Park
- currentTickResult : TickResult
- Simulation()
+ Create(SimulationConfig)
+ CreateOnce(SimulationConfig) {static}
+ GetMoney() : int
+ GetPark() : IInspectable
+ GetBuilder() : IBuilder
+ Tick() : IEnumerable<(IDisplayable, IInspectable)>
+ AddPerson(Person)
+ AddPerson(MaintenanceGuy)
+ AddPerson(CleaningLady)
+ Tick() : TickResult
}
Simulation --|> Singleton
Simulation --> Park
Simulation --> MaintenanceDispatcher
Simulation *- TickResult
class TickResult {
+ GameOver : bool
+ {field} NewVisitors : IEnumerable<(IDisplayable, IInspectable)>
+ {field} NewCleaningStaff : IEnumerable<(IDisplayable, IInspectable)>
+ {field} NewMaintenanceStaff : IEnumerable<(IDisplayable, IInspectable)>
}
class Park <<Singleton>> {
- balance : int
......@@ -341,18 +353,33 @@ package Model.Landscape {
skinparam classAttributeIconSize 0
left to right direction
class Model.TickResult {
+ GameOver : bool
+ {field} NewVisitors : IEnumerable<(IDisplayable, IInspectable)>
+ {field} NewCleaningStaff : IEnumerable<(IDisplayable, IInspectable)>
+ {field} NewMaintenanceStaff : IEnumerable<(IDisplayable, IInspectable)>
}
Model.Simulation *- Model.TickResult
class Model.Simulation {
- people : Person[]
- map : Map
- park : Park
- currentTickResult : TickResult
- Simulation()
+ Create(SimulationConfig)
+ CreateOnce(SimulationConfig) {static}
+ GetMoney() : int
+ GetPark() : IInspectable
+ GetBuilder() : IBuilder
+ Tick() : IEnumerable<(IDisplayable, IInspectable)>
+ AddPerson(Person)
+ AddPerson(MaintenanceGuy)
+ AddPerson(CleaningLady)
+ Tick() : TickResult
}
interface Model.IBuilder {
+ CanBuild(IMapObjectBlueprint, Orientation) : bool
+ Build(IMapObjectBlueprint, Orientation) : (IDisplayable, IInspectable)
......
......