|
1 | 1 | /*
|
2 |
| - * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). |
| 2 | + * This project is licensed under the MIT license. Module model-view-viewmodel |
| 3 | + * is using ZK framework licensed under LGPL (see lgpl-3.0.txt). |
3 | 4 | *
|
4 | 5 | * The MIT License
|
5 | 6 | * Copyright © 2014-2022 Ilkka Seppälä
|
|
27 | 28 | import lombok.extern.slf4j.Slf4j;
|
28 | 29 |
|
29 | 30 | /**
|
30 |
| - * <p>Type object pattern is the pattern we use when the OOP concept of creating a base class and |
| 31 | + * Type object pattern is the pattern we use when the OOP concept of creating a base class and |
31 | 32 | * inheriting from it just doesn't work for the case in hand. This happens when we either don't know
|
32 | 33 | * what types we will need upfront, or want to be able to modify or add new types conveniently w/o
|
33 | 34 | * recompiling repeatedly. The pattern provides a solution by allowing flexible creation of required
|
34 |
| - * objects by creating one class, which has a field which represents the 'type' of the object.</p> |
35 |
| - * <p>In this example, we have a mini candy-crush game in action. There are many different candies |
| 35 | + * objects by creating one class, which has a field which represents the 'type' of the object. |
| 36 | + * In this example, we have a mini candy-crush game in action. There are many different candies |
36 | 37 | * in the game, which may change over time, as we may want to upgrade the game. To make the object
|
37 | 38 | * creation convenient, we have a class {@link Candy} which has a field name, parent, points and
|
38 | 39 | * Type. We have a json file {@link candy} which contains the details about the candies, and this is
|
|
41 | 42 | * how crushing can be done, how the matrix is to be reconfigured and how points are to be gained.
|
42 | 43 | * The {@link CellPool} class is a pool which reuses the candy cells that have been crushed instead
|
43 | 44 | * of making new ones repeatedly. The {@link CandyGame} class has the rules for the continuation of
|
44 |
| - * the game and the {@link App} class has the game itself.</p> |
| 45 | + * the game and the {@link App} class has the game itself. |
45 | 46 | */
|
46 | 47 |
|
47 | 48 | @Slf4j
|
|
0 commit comments