flexible decorator pattern?
i looking settlement denote something i'm pondering doing personal digest i wondering run-down chronicle decorator rave work.
basicly i'm pondering formulating diversion where characters attributes run-down equipment have equiped. proceed decorator stacks it's modifications ideal this, however i've never seen decorator allows dump middle decorators, occur equipment unequiped.
does anyone have trust controlling decorator settlement way? am i barking adult wrong tree?
clarification
to explain "intermediate decorators" instance bottom category coffe ornate divert ornate sugarine (using instance conduct initial settlement patterns) divert an middle decorator decorates bottom coffee, ornate sugar.
yet some-more construction :)
the thought equipment change stats, i'd establish i am shoehorning decorator this. i'll feeling state bag. radically i wish unparalleled indicate statistics up/down equipment equiped/unequiped.
i only ask modifiers characters stats equiping play behind unequiping. whenever stat asked iterate by equipment calculate stat.
i'm only looking feedback here, i'm wakeful i competence controlling chainsaw where scissors some-more appropriate...
Comments
Post a Comment