From 3c62d61a3d73b9e4d0d8d64de92e5826db6260ee Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 4 Feb 2018 12:50:31 +0100 Subject: Update class diagram Signed-off-by: pacien --- src/docs/class.puml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/docs/class.puml b/src/docs/class.puml index d8c6e81..4f30ff1 100644 --- a/src/docs/class.puml +++ b/src/docs/class.puml @@ -32,8 +32,12 @@ package viewer { package context { interface Updateable { - List update(Context) - static List updateAll(List, Context) + Stream update(Context) + } + + class Updateables { + static Stream updateAll(Context, List) + static Stream updateAll(Context, Updateable...) } class Context { @@ -65,14 +69,14 @@ package context { void setOver() void nextStage() void retryStage() - List update(Context) + Stream update(Context) } class Stage implements Updateable { Stage(Board) Board getBoard() List getBlocks() - List update(Context) + Stream update(Context) bool isCleared() } } @@ -183,23 +187,23 @@ package block { class RobotBlock extends Block { Vec2 getPos() void link(World world) - List update(Context) + Stream update(Context) } class WallBlock extends JBoxBlock { - List update(Context) + Stream update(Context) } class TrashBlock extends JBoxBlock { - List update(Context) + Stream update(Context) } class BombBlock extends JBoxBlock { - List update(Context) + Stream update(Context) } class GarbageBlock extends JBoxBlock { - List update(Context) + Stream update(Context) } } -- cgit v1.2.3 From d214d357ff0b03205ba9a8d753c93c9fa17094f3 Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 4 Feb 2018 12:52:36 +0100 Subject: Update class diagram again Signed-off-by: pacien --- src/docs/class.puml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/docs/class.puml b/src/docs/class.puml index 4f30ff1..1aede6c 100644 --- a/src/docs/class.puml +++ b/src/docs/class.puml @@ -82,6 +82,11 @@ package context { } package event { + class Events { + static Stream filter(List, Class) + static Optional findFirst(List, Class) + } + interface Event interface GameEvent implements Event interface InputEvent implements Event -- cgit v1.2.3