|
|
|
@ -137,12 +137,22 @@ package Model <<Frame>> #bada55 {
|
|
|
|
|
-globalPlayerManager: IManager
|
|
|
|
|
-globalDieManager: IManager
|
|
|
|
|
+GetAllGames(): [*] Game
|
|
|
|
|
+GetOneGameByName(name: string): Game
|
|
|
|
|
+SaveGame(game: Game)
|
|
|
|
|
+LoadGame(name: string)
|
|
|
|
|
+StartNewGame(name: string, playerManager: PlayerManager, dice: [*] AbstractDie)
|
|
|
|
|
+DeleteGame(game: Game)
|
|
|
|
|
-PlayGame(game: Game)
|
|
|
|
|
+GetOneGameByName(name: string): Game
|
|
|
|
|
{static} +PlayGame(game: Game)
|
|
|
|
|
+AddGlobalPlayer(player: Player)
|
|
|
|
|
+GetGlobalPlayers(): [*] Player
|
|
|
|
|
+GetOneGlobalPlayerByName(name: string): Player
|
|
|
|
|
+UpdateGlobalPlayer(oldPlayer: Player, newPlayer: Player)
|
|
|
|
|
+DeleteGlobalPlayer(oldPlayer: Player)
|
|
|
|
|
+AddGlobalDiceGroup(name: string, dice: [*] AbstractDie)
|
|
|
|
|
+GetGlobalDiceGroups(): [*] KeyValuePair<string, [*] AbstractDie>
|
|
|
|
|
+GetOneGlobalDiceGroupByName(name: string): KeyValuePair<string, [*] AbstractDie>
|
|
|
|
|
+UpdateGlobalDiceGroup(oldName: string, newName: string)
|
|
|
|
|
+DeleteGlobalDiceGroup(oldName: string)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -190,12 +200,22 @@ package Model <<Frame>> #bada55 {
|
|
|
|
|
-globalPlayerManager: IManager
|
|
|
|
|
-globalDieManager: IManager
|
|
|
|
|
+GetAllGames(): [*] Game
|
|
|
|
|
+GetOneGameByName(name: string): Game
|
|
|
|
|
+SaveGame(game: Game)
|
|
|
|
|
+LoadGame(name: string)
|
|
|
|
|
+StartNewGame(name: string, playerManager: PlayerManager, dice: [*] AbstractDie)
|
|
|
|
|
+DeleteGame(game: Game)
|
|
|
|
|
-PlayGame(game: Game)
|
|
|
|
|
+GetOneGameByName(name: string): Game
|
|
|
|
|
{static} +PlayGame(game: Game)
|
|
|
|
|
+AddGlobalPlayer(player: Player)
|
|
|
|
|
+GetGlobalPlayers(): [*] Player
|
|
|
|
|
+GetOneGlobalPlayerByName(name: string): Player
|
|
|
|
|
+UpdateGlobalPlayer(oldPlayer: Player, newPlayer: Player)
|
|
|
|
|
+DeleteGlobalPlayer(oldPlayer: Player)
|
|
|
|
|
+AddGlobalDiceGroup(name: string, dice: [*] AbstractDie)
|
|
|
|
|
+GetGlobalDiceGroups(): [*] KeyValuePair<string, [*] AbstractDie>
|
|
|
|
|
+GetOneGlobalDiceGroupByName(name: string): KeyValuePair<string, [*] AbstractDie>
|
|
|
|
|
+UpdateGlobalDiceGroup(oldName: string, newName: string)
|
|
|
|
|
+DeleteGlobalDiceGroup(oldName: string)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Game $done {
|
|
|
|
@ -287,7 +307,7 @@ skinparam classAttributeIconSize 0
|
|
|
|
|
|
|
|
|
|
package Model <<Frame>> #bada55 {
|
|
|
|
|
|
|
|
|
|
interface IManager<KeyValuePair<string, IEnumerable<AbstractDie<AbstractDieFace>>>> $done {
|
|
|
|
|
interface IManager<KeyValuePair<string, [*] AbstractDie>> $done {
|
|
|
|
|
+Add(toAdd: T): T
|
|
|
|
|
+GetAll(): T[*]
|
|
|
|
|
+GetOneByName(name: string): T
|
|
|
|
|