For a computer game the rewards for the player as he/she progresses through the game are:
Entry level: Lamp worth n points Intermediate level: magic mat m points Advanced level: treasure chest which can be filled with lamps or mats
Here we apply the composite pattern
Client: computer game
I believe that the component are the levels (entry, intermediate and advanced) Composite: Rewards Leaf: lamp,magic mat,chest Operation: getPoints(), fillChest()
Are these correct?