mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-06-08 08:15:45 +00:00
docs: updates to several patterns
This commit is contained in:
@@ -102,12 +102,6 @@ Upon opening the component package, the collection of components are revealed. T
|
||||
public class PlayerInputComponent implements InputComponent {
|
||||
private static final int walkAcceleration = 1;
|
||||
|
||||
/**
|
||||
* The update method to change the velocity based on the input key event.
|
||||
*
|
||||
* @param gameObject the gameObject instance
|
||||
* @param e key event instance
|
||||
*/
|
||||
@Override
|
||||
public void update(GameObject gameObject, int e) {
|
||||
switch (e) {
|
||||
@@ -128,10 +122,6 @@ public class PlayerInputComponent implements InputComponent {
|
||||
}
|
||||
```
|
||||
|
||||
## Class diagram
|
||||
|
||||

|
||||
|
||||
## Applicability
|
||||
|
||||
* Used in game development and simulations where game entities (e.g., characters, items) can have a dynamic set of abilities or states.
|
||||
|
||||
Reference in New Issue
Block a user