Skip to content

Commit

Permalink
feat: update uml diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
Ozon committed May 10, 2020
1 parent c1c782a commit 38da49a
Showing 1 changed file with 39 additions and 23 deletions.
62 changes: 39 additions & 23 deletions diagram.plantuml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ package com.knightwars {
class MainMenuBackground {
+ draw(batch : Batch, parentAlpha : float)
}
class MainMenuBackground {
+ draw(batch : Batch, parentAlpha : float)
}
class EndGameScreen {
+ draw(batch : Batch, parentAlpha : float)
}


package gameActors {
Expand Down Expand Up @@ -74,6 +80,7 @@ package com.knightwars {


package game {

class GameManager {
- game : KnightWarsGame
+ getKnightWarsGame() : KnightWarsGame
Expand All @@ -90,6 +97,9 @@ package com.knightwars {
+ update(dt : float)
}

class YamlParser {
yamlValidity(javaMap : Map<String, Map<String, Integer>>, superClass : Class<?> , objPackage : String)
}

package environment {

Expand Down Expand Up @@ -127,22 +137,6 @@ package com.knightwars {
+ update(dt : float)
}

class Player {
- color : ColorPlayer
+ getColor() : ColorPlayer
+ getGold() : float
+ getName() : String
+ getUnitLevel() : float
+ removeGold(gold : float)
+ upgradeUnits()
}

enum ColorPlayer {
+ BLUE {static}
+ NEUTRAL {static}
+ RED {static}
}

class Unit {
- departureBuilding : Building
- destinationBuilding : Building
Expand All @@ -153,19 +147,35 @@ package com.knightwars {
+ update(dt : float)
}


package players {
class ComputerPlayer
class HumanPlayer
class NeutralPlayer

class Player {
- color : ColorPlayer
+ getColor() : ColorPlayer
+ getGold() : float
+ getName() : String
+ getUnitLevel() : float
+ removeGold(gold : float)
+ upgradeUnits()
}

enum ColorPlayer {
+ BLUE {static}
+ NEUTRAL {static}
+ RED {static}
}
}

package buildings {
class ClassicCastle {
+ ClassicCastle(building : Building)
+ ClassicCastle(owner : Player, coordinates : Vector2, knights : int, knightGrowth : boolean)
+ Copy() : ClassicCastle
}
class ClassicCastle
class FortifiedCastle
class CitadelCastle1
class ForgeCastle1
class GarrisonCastle1
class MarketCastle1
}
}
}
Expand All @@ -179,6 +189,7 @@ KnightWars ..> GameManager: crée
' Frontend
Display ..> GameScreen: affiche
Display ..> MainMenuScreen: affiche
Display ..> EndGameScreen: affiche
MainMenuScreen o-- MainMenuBackground
GameScreen o-- GameActorHUD
GameScreen o-- GameActorBuildings
Expand All @@ -196,10 +207,15 @@ Unit o-- Building
Unit o-- Path
Building o-- Player
Player o-- ColorPlayer
ClassicCastle --|> Building
ComputerPlayer --|> Player
NeutralPlayer --|> Player
HumanPlayer --|> Player
ClassicCastle --|> Building
FortifiedCastle --|> Building
CitadelCastle1 --|> Building
ForgeCastle1 --|> Building
GarrisonCastle1 --|> Building
MarketCastle1 --|> Building

' Liens frontend - backend
EventHandler o-- KnightWarsGame
Expand Down

0 comments on commit 38da49a

Please sign in to comment.