From cb7f03b231218f7cc4a645d45f069ab7962b3c8b Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 8 Jan 2018 15:28:07 +0100 Subject: Add game event to class diagram Signed-off-by: pacien --- src/docs/class.puml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/docs/class.puml b/src/docs/class.puml index 754ddbe..ab5cd30 100644 --- a/src/docs/class.puml +++ b/src/docs/class.puml @@ -55,15 +55,23 @@ package context { package event { interface Event - class DropBombEvent implements Event { + interface InputEvent implements Event + interface GameEvent implements Event + + class DropBombEvent implements InputEvent { DropBombEvent(TileVec2) } - class MoveRobotEvent implements Event { + class MoveRobotEvent implements InputEvent { MoveRobotEvent(TileVec2) } - class ConfirmEvent implements Event + class ConfirmEvent implements InputEvent + + class ExplosionEvent implements GameEvent { + Block source + Body source + } } package board { @@ -116,7 +124,7 @@ package model { Block(Vec2) Vec2 getPosition() void setPosition(Vec2) - void update(Context) + List update(Context) } abstract class StaticBlock extends Block @@ -132,21 +140,20 @@ package model { List Stage(Board) List getBlocks() - void update(Context) + List update(Context) bool isCleared() } } package controller { interface Controller { - void update(Context) + List update(Context) } abstract class BlockController implements Controller { Block Controller(Block) Block getBlock() - void update(Context) } class BlockControllerFactory { -- cgit v1.2.3