File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Open diff view settings
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Open diff view settings
Original file line number Diff line number Diff line change 186186 - 1、装备的超类:[ IEquip.java] ( https://github.com/youlookwhat/DesignPattern/blob/master/app/src/main/java/com/example/jingbin/designpattern/decorator/IEquip.java )
187187 - 2、各个装备的实现类:
188188 - eg:** 武器** 的实现类: [ ArmEquip.java] ( https://github.com/youlookwhat/DesignPattern/blob/master/app/src/main/java/com/example/jingbin/designpattern/decorator/equip/ArmEquip.java )
189+
189190- 3、装饰品的超类(装饰品也属于装备):[ IEquipDecorator.java] ( https://github.com/youlookwhat/DesignPattern/blob/master/app/src/main/java/com/example/jingbin/designpattern/decorator/gem/IEuipDecotator.java )
190191- 4、装饰品的实现类:
191192 - eg:** 蓝宝石** 的实现类(可累加): [ BlueGemDecorator.java] ( https://github.com/youlookwhat/DesignPattern/blob/master/app/src/main/java/com/example/jingbin/designpattern/decorator/gem/BlueGemDecotator.java )
193+
192194- 5、最后测试:计算攻击力和查看描述:
193195
194196 ```java
You can’t perform that action at this time.
0 commit comments