|
|
@@ -193,12 +193,10 @@ Example: Players have *methods* such as `walk(), addGold(), getHealth(), pickUpI
|
|
|
|
|
|
[TIP]
|
|
|
====
|
|
|
- *Follow the Best Practice:* In general, use composition over inheritance and keep “what an entity does (behaviour system) separate from “what this entity is (attributes).
|
|
|
+*Follow the Best Practice:* In general, use composition over inheritance and keep “what an entity does (behaviour system) separate from “what this entity is (attributes).
|
|
|
|
|
|
* Use `<<jme3/advanced/spatial#,setUserData()>>` to add custom attributes to Spatials.
|
|
|
* Use <<jme3/advanced/custom_controls#,Controls>> and <<jme3/advanced/application_states#,Application States>> to define custom behaviour systems.
|
|
|
-
|
|
|
-
|
|
|
====
|
|
|
|
|
|
|