Changes
Page history
Swiched methods to PascalCase in Class Diagram
authored
Feb 28, 2021
by
Kovács Gergely Zsolt
Hide whitespace changes
Inline
Side-by-side
Class-Diagram.md
View page @
8e34df7c
...
@@ -5,22 +5,22 @@ skinparam classAttributeIconSize 0
...
@@ -5,22 +5,22 @@ skinparam classAttributeIconSize 0
package Model.Common {
package Model.Common {
interface IDisplayable {
interface IDisplayable {
+
g
etPosition() : Vector2
+
G
etPosition() : Vector2
+
g
etVisible() : bool
+
G
etVisible() : bool
}
}
interface ITickable {
interface ITickable {
+
t
ick()
+
T
ick()
}
}
interface IInspectable {
interface IInspectable {
+
g
etProperties()
+
G
etProperties()
}
}
class Singleton {
class Singleton {
- {static} instance : Singleton
- {static} instance : Singleton
- Singleton()
- Singleton()
+ {static}
g
etInstance() : Singleton
+ {static}
G
etInstance() : Singleton
}
}
}
}
...
@@ -42,12 +42,12 @@ class Park {
...
@@ -42,12 +42,12 @@ class Park {
- entryFee : int
- entryFee : int
- buildings : Building[]
- buildings : Building[]
- Park()
- Park()
+
g
etBalance() : int
+
G
etBalance() : int
+
g
etEntryFee() : int
+
G
etEntryFee() : int
+
g
etBuildings() : Building[]
+
G
etBuildings() : Building[]
+
m
odifyBalance(int)
+
M
odifyBalance(int)
+
a
ddBuilding(Building)
+
A
ddBuilding(Building)
+
s
etEntryFee(int)
+
S
etEntryFee(int)
}
}
IDisplayable <|-- WorldEntity
IDisplayable <|-- WorldEntity
...
@@ -56,10 +56,10 @@ class WorldEntity {
...
@@ -56,10 +56,10 @@ class WorldEntity {
- position : Vector2
- position : Vector2
- visible : bool
- visible : bool
# WorldEntity(Vector2)
# WorldEntity(Vector2)
+
g
etPosition() : Vector2
+
G
etPosition() : Vector2
+
g
etVisible() : bool
+
G
etVisible() : bool
+
s
etPosition(Vector2)
+
S
etPosition(Vector2)
+
s
etVisible(bool)
+
S
etVisible(bool)
}
}
...
@@ -75,10 +75,10 @@ class Person {
...
@@ -75,10 +75,10 @@ class Person {
- pavement : Pavement
- pavement : Pavement
- routeHandle : RouteHandle
- routeHandle : RouteHandle
# Person(Vector2, float)
# Person(Vector2, float)
+
t
ick() {override}
+
T
ick() {override}
+
g
etProperties() {override}
+
G
etProperties() {override}
+
g
etDestination()
+
G
etDestination()
+
s
etDestination(MapObject)
+
S
etDestination(MapObject)
}
}
...
@@ -90,15 +90,15 @@ class Visitor {
...
@@ -90,15 +90,15 @@ class Visitor {
- money : int
- money : int
- inQueue : bool
- inQueue : bool
+ Visitor(Vector2, float, int, int, int)
+ Visitor(Vector2, float, int, int, int)
-
c
hooseDestination()
-
C
hooseDestination()
+
d
eliverEffects(int, int, int)
+
D
eliverEffects(int, int, int)
+
g
ameEnded(Vector2)
+
G
ameEnded(Vector2)
+
t
ick() {override}
+
T
ick() {override}
+
g
etProperties() {override}
+
G
etProperties() {override}
+
m
odifyMood(int)
+
M
odifyMood(int)
+
m
odifySatiety(int)
+
M
odifySatiety(int)
+
m
odifyMoney(int)
+
M
odifyMoney(int)
+
s
etInQueue(bool)
+
S
etInQueue(bool)
}
}
...
@@ -107,10 +107,10 @@ Person <|-- Staff
...
@@ -107,10 +107,10 @@ Person <|-- Staff
class Staff {
class Staff {
- idle : bool
- idle : bool
# Staff(Vector2, float)
# Staff(Vector2, float)
+
t
ick() {override}
+
T
ick() {override}
+
g
etProperties() {override}
+
G
etProperties() {override}
+
i
sIdle() : bool
+
I
sIdle() : bool
+
s
etDestination(MapObject) {override}
+
S
etDestination(MapObject) {override}
}
}
...
@@ -118,8 +118,8 @@ Staff <|-- CleaningLady
...
@@ -118,8 +118,8 @@ Staff <|-- CleaningLady
class CleaningLady {
class CleaningLady {
+ CleaningLady(Vector2, float)
+ CleaningLady(Vector2, float)
+
t
ick() {override}
+
T
ick() {override}
+
g
etProperties() {override}
+
G
etProperties() {override}
}
}
...
@@ -127,8 +127,8 @@ Staff <|-- MaintenanceGuy
...
@@ -127,8 +127,8 @@ Staff <|-- MaintenanceGuy
class MaintenanceGuy {
class MaintenanceGuy {
+ MaintenanceGuy(Vector2, float)
+ MaintenanceGuy(Vector2, float)
+
t
ick() {override}
+
T
ick() {override}
+
g
etProperties() {override}
+
G
etProperties() {override}
}
}
...
@@ -138,7 +138,7 @@ Simulation ---> MaintenanceDispatcher
...
@@ -138,7 +138,7 @@ Simulation ---> MaintenanceDispatcher
class MaintenanceDispatcher {
class MaintenanceDispatcher {
- maintainers : MaintenanceGuy[]
- maintainers : MaintenanceGuy[]
- MaintenanceDispatcher()
- MaintenanceDispatcher()
+ {static}
g
ameBroken(Building)
+ {static}
G
ameBroken(Building)
}
}
MaintenanceDispatcher *-- "-maintainers\n*" MaintenanceGuy
MaintenanceDispatcher *-- "-maintainers\n*" MaintenanceGuy
...
@@ -159,7 +159,7 @@ class QueuePavement {
...
@@ -159,7 +159,7 @@ class QueuePavement {
+ Exit(Person) {override}
+ Exit(Person) {override}
}
}
Simulation "1" *-
-
Map
Simulation "1" *- Map
WorldEntity <|-- MapObject
WorldEntity <|-- MapObject
abstract class MapObject {
abstract class MapObject {
+ Enter(Person) : Vector2? {abstract}
+ Enter(Person) : Vector2? {abstract}
...
@@ -174,4 +174,5 @@ Pavement <|-- QueuePavement
...
@@ -174,4 +174,5 @@ Pavement <|-- QueuePavement
Map "*" *-- MapObject
Map "*" *-- MapObject
Map "1" *-- NavigationGraph
Map "1" *-- NavigationGraph
@enduml```
@enduml
\ No newline at end of file
```
\ No newline at end of file