Changes
Page history
Update Class Diagram
authored
Mar 01, 2021
by
Kovács Gergely Zsolt
Hide whitespace changes
Inline
Side-by-side
Class-Diagram.md
View page @
31a3f0d9
...
...
@@ -39,13 +39,13 @@ package Model.Common {
+ GetActions() : IEnumerable<Action>
}
class Singleton<T> {
class Singleton<T>
<<Singleton>>
{
- {static} instance : T
- Singleton()
+ {static} GetInstance() : T
}
class Simulation {
class Simulation
<<Singleton>>
{
- people : Person[]
- Simulation()
}
...
...
@@ -53,7 +53,7 @@ package Model.Common {
Simulation --> Park
Simulation --> MaintenanceDispatcher
class Park {
class Park
<<Singleton>>
{
- balance : int
- entryFee : int
- buildings : Building[]
...
...
@@ -62,6 +62,8 @@ package Model.Common {
+ GetEntryFee() : int
+ GetBuildings() : Building[]
+ GetEntrance() : Building
+ GetProperties() : IEnumerable<Property> {override}
+ GetActions() : IEnumerable<Action> {override}
+ ModifyBalance(int)
+ AddBuilding(Building)
+ SetEntryFee(int)
...
...
@@ -80,12 +82,11 @@ package Model.Common {
}
WorldEntity --|> IDisplayable
class MaintenanceDispatcher {
- maintainers : MaintenanceGuy[]
class MaintenanceDispatcher
<<static>>
{
-
{static}
maintainers : MaintenanceGuy[]
- MaintenanceDispatcher()
+ {static} GameBroken(Building)
}
MaintenanceDispatcher --|> Singleton
}
package Model.Map {
...
...
@@ -168,7 +169,8 @@ package Model.People {
- name : string
# Person(Vector2, float)
+ Tick() {override}
+ GetProperties() {override}
+ GetProperties() : IEnumerable<Property> {override}
+ GetActions() : IEnumerable<Action> {override}
+ GetDestination()
+ SetDestination(MapObject)
}
...
...
@@ -183,7 +185,7 @@ package Model.People {
+ DeliverEffects(int, int, int)
+ GameEnded(Vector2)
+ Tick() {override}
+ GetProperties() {override}
+ GetProperties()
: IEnumerable<Property>
{override}
+ ModifyMood(int)
+ ModifySatiety(int)
+ ModifyMoney(int)
...
...
@@ -195,7 +197,7 @@ package Model.People {
- idle : bool
# Staff(Vector2, float)
+ Tick() {override}
+ GetProperties() {override}
+ GetProperties()
: IEnumerable<Property>
{override}
+ IsIdle() : bool
+ SetDestination(MapObject) {override}
}
...
...
@@ -204,14 +206,14 @@ package Model.People {
class CleaningLady {
+ CleaningLady(Vector2, float)
+ Tick() {override}
+ GetProperties() {override}
+ GetProperties()
: IEnumerable<Property>
{override}
}
CleaningLady --|> Staff
class MaintenanceGuy {
+ MaintenanceGuy(Vector2, float)
+ Tick() {override}
+ GetProperties() {override}
+ GetProperties()
: IEnumerable<Property>
{override}
}
MaintenanceGuy --|> Staff
MaintenanceDispatcher *--- "-maintainers\n*\n" MaintenanceGuy
...
...
...
...