-
Notifications
You must be signed in to change notification settings - Fork 0
/
yuml-code.txt
61 lines (32 loc) · 3.37 KB
/
yuml-code.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[IItem]^--.-[StackableItem]
[<<Interface>>;IItem|#id: string;#displayName: string;#canPlace: bool| +getID(): string; +getDisplayName(): string; +isStackable(): bool; +getTooltip(): string ;+isEnchantable(): bool; +itemType(): string ]
[StackableItem| #maxStack: uint| +StackableItem(string,string,uint,bool);+getMaxStack(): uint; +isStackable(): bool ; +getTooltip(): string]
[StackableItem]^-[Consumable]
[Consumable|#saturation: int;#effects: list| +Consumable(Consumable);+getSaturation(): int;+getEffects(): list; +build(): ConsumableBuilder]
[Consumable]<>-[ConsumableBuilder]
[ConsumableBuilder|-b_consumable: Consumable| ...]
[UnstackableItem| #hasDurability: bool; #durability: uint; #durabilityMax: uint| +UnstackableItem(string,string); +UnstackableItem(string,string,uint,uint);+getDurabilityMax(): uint; +setDurability(uint): uint; +addDurability(int): int ;+isStackable(): bool; +getTooltip(): string ; +itemType(): string]
[IItem]^--.-[UnstackableItem]
[Weapon| #damage: uint; #enchantments: list|+Weapon(Weapon); +getDamage(): uint;+getEnchantments(): list; +use(): int; +getTooltip(): string; +equiptmentType(): string; +build(): WeaponBuilder]
[UnstackableItem]^-[Weapon]
[WeaponBuilder| -b_weapon: Weapon|...]
[Weapon]<>-[WeaponBuilder]
[Armour|#protectionLevel: uint;#enchantments: list|+Armour(Armour); +getProtectionLevel(): uint; +getEnchantments(): list; +use(): int; +getTooltip(): string; +equiptmentType(): string; +build(): ArmourBuilder]
[UnstackableItem]^[Armour]
[ArmourBuilder| -b_armour: Armour|...]
[Armour]<>-[ArmourBuilder]
[Repo|#slots: vector(IItem* uint); #filePath: string| +Repo(); +Repo(Repo);+domain: &Domain; +load(string):bool; +refresh(): bool; +save(string): bool; +save(): bool; +addSlot(IItem* uint); +updateSlot(IItem*, uint); +updateSlotAt(uint IItem*, uint); +popSlot(IItem*); +popSlotAt(uint); +lastSlotWhere(IItem*): &(IItem*, uint); +firstSlotWhere(IItem*): &(IItem*, uint); +slotAt(uint): &(IItem*, uint); +getAll(): vector(IItem*, uint); +size(): int]
[InventoryService|-Repo*: repo; -commands: Commands; -hGive_fill_preceding(StackableItem,uint) :uint; +hGive_normalize_surplus(StackableItem
uint): uint; +hCommands_execute(Command) :bool| +InventoryService(&Repo); +getLastRef(IItem*): (IItem*,uint); +getLastRef(string): (IItem*,uint); +getFirstRef(IItem*): (IItem*,uint); +getFirstRef(string): (IItem*,uint); +total(IItem*): uint; +total(): uint; +getAll(): vector(IItem*
uint); +give(IItem*,uint, bool); +clear(IItem*,uint, bool); +clear(); +undo(); +redo()]
[InventoryService]-<>[Repo]
[EnchantmentService||+enchant(Armour*);+enchant(Weapon*)]
[Weapon]<-[EnchantmentService]
[Armour]<-[EnchantmentService]
[Command| -command:comm; -id: string; -qty: uint|+Command(comm, string, uint); +reverse(): Command; +getCommand(): comm; +getId(): string; +getQty(): uint]
[Commands| -history: stack(Command); -future: stack(Command)| +Commands(); +did(command); +undo(): Command; +redo(): Command]
[Commands]->[Command]
[InventoryService]->[Commands]
[Domain| -path: string; -stackables: vector(StackableItems); -unstackables: vector(UnstackableItems); -consumables: vector(Consumables); -weapons: vector(Weapon); -armours: vector(Armour)| +Domain(string); +Domain(); +load(string): bool; +refresh(): bool; +save(string): bool; +save(): bool; +write(IItem*); +deleteItem(string): bool; +get(string): IItem*; +getAll(): vector(IItem*)]
[IItem]<-[Repo]
[Domain]<-[Repo]