From 86fb33c51b587af6d4c9b094cd1d4dd6c80c1104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 25 Sep 2014 10:02:09 +0200 Subject: update TODO --- TODO | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index 7ebfbda..ab01946 100644 --- a/TODO +++ b/TODO @@ -1,12 +1,9 @@ -fix commit names fix resize issues Board - - build possible moves List - - build possible attacks List - - build possible assits List - - add debug mode: click out of mpa -> circle through show ROADS TOWN HILLS + - build possible attacks List + - build possible assits List - support Orientation offset - support inverted even/odd row scheme @@ -17,3 +14,27 @@ Pawn - public abstract boolean isUnit(); => unit stack depth might think about decorator pattern for overlays + + + +us decorator pattern, No can Do ?? + + + interface Pawn + + + !!! abstract class SimplePawn implements Pawn + protected Image OR extends Image + + + abstract class PawnDecorator implements Pawn + potected Pawn pawn; + PawnDecorator(Pawn pawn) { this.pawn = pawn; } + public _method_() { pawn._method_(); } + + + ?! abstract class OverlayPawnDecorator extends PawnDecorator + ... + + ?! abstract class HeadedPawnDecorator extends PawnDecorator + ... + + * class Unit extends SimplePawn + getUnit(_args_) { + return new HeadedPawnDecorator( new OverlayPawnDecorator ( new Unit(_args_) ) ) + } -- cgit v1.1-2-g2b99