Swiched methods to PascalCase in Class Diagram authored by Kovács Gergely Zsolt's avatar Kovács Gergely Zsolt
......@@ -5,22 +5,22 @@ skinparam classAttributeIconSize 0
package Model.Common {
interface IDisplayable {
+ getPosition() : Vector2
+ getVisible() : bool
+ GetPosition() : Vector2
+ GetVisible() : bool
}
interface ITickable {
+ tick()
+ Tick()
}
interface IInspectable {
+ getProperties()
+ GetProperties()
}
class Singleton {
- {static} instance : Singleton
- Singleton()
+ {static} getInstance() : Singleton
+ {static} GetInstance() : Singleton
}
}
......@@ -42,12 +42,12 @@ class Park {
- entryFee : int
- buildings : Building[]
- Park()
+ getBalance() : int
+ getEntryFee() : int
+ getBuildings() : Building[]
+ modifyBalance(int)
+ addBuilding(Building)
+ setEntryFee(int)
+ GetBalance() : int
+ GetEntryFee() : int
+ GetBuildings() : Building[]
+ ModifyBalance(int)
+ AddBuilding(Building)
+ SetEntryFee(int)
}
IDisplayable <|-- WorldEntity
......@@ -56,10 +56,10 @@ class WorldEntity {
- position : Vector2
- visible : bool
# WorldEntity(Vector2)
+ getPosition() : Vector2
+ getVisible() : bool
+ setPosition(Vector2)
+ setVisible(bool)
+ GetPosition() : Vector2
+ GetVisible() : bool
+ SetPosition(Vector2)
+ SetVisible(bool)
}
......@@ -75,10 +75,10 @@ class Person {
- pavement : Pavement
- routeHandle : RouteHandle
# Person(Vector2, float)
+ tick() {override}
+ getProperties() {override}
+ getDestination()
+ setDestination(MapObject)
+ Tick() {override}
+ GetProperties() {override}
+ GetDestination()
+ SetDestination(MapObject)
}
......@@ -90,15 +90,15 @@ class Visitor {
- money : int
- inQueue : bool
+ Visitor(Vector2, float, int, int, int)
- chooseDestination()
+ deliverEffects(int, int, int)
+ gameEnded(Vector2)
+ tick() {override}
+ getProperties() {override}
+ modifyMood(int)
+ modifySatiety(int)
+ modifyMoney(int)
+ setInQueue(bool)
- ChooseDestination()
+ DeliverEffects(int, int, int)
+ GameEnded(Vector2)
+ Tick() {override}
+ GetProperties() {override}
+ ModifyMood(int)
+ ModifySatiety(int)
+ ModifyMoney(int)
+ SetInQueue(bool)
}
......@@ -107,10 +107,10 @@ Person <|-- Staff
class Staff {
- idle : bool
# Staff(Vector2, float)
+ tick() {override}
+ getProperties() {override}
+ isIdle() : bool
+ setDestination(MapObject) {override}
+ Tick() {override}
+ GetProperties() {override}
+ IsIdle() : bool
+ SetDestination(MapObject) {override}
}
......@@ -118,8 +118,8 @@ Staff <|-- CleaningLady
class CleaningLady {
+ CleaningLady(Vector2, float)
+ tick() {override}
+ getProperties() {override}
+ Tick() {override}
+ GetProperties() {override}
}
......@@ -127,8 +127,8 @@ Staff <|-- MaintenanceGuy
class MaintenanceGuy {
+ MaintenanceGuy(Vector2, float)
+ tick() {override}
+ getProperties() {override}
+ Tick() {override}
+ GetProperties() {override}
}
......@@ -138,7 +138,7 @@ Simulation ---> MaintenanceDispatcher
class MaintenanceDispatcher {
- maintainers : MaintenanceGuy[]
- MaintenanceDispatcher()
+ {static} gameBroken(Building)
+ {static} GameBroken(Building)
}
MaintenanceDispatcher *-- "-maintainers\n*" MaintenanceGuy
......@@ -159,7 +159,7 @@ class QueuePavement {
+ Exit(Person) {override}
}
Simulation "1" *-- Map
Simulation "1" *- Map
WorldEntity <|-- MapObject
abstract class MapObject {
+ Enter(Person) : Vector2? {abstract}
......@@ -174,4 +174,5 @@ Pavement <|-- QueuePavement
Map "*" *-- MapObject
Map "1" *-- NavigationGraph
@enduml```
\ No newline at end of file
@enduml
```
\ No newline at end of file