Package org.ngengine.components.jme3
Class AppComponentUpdater
java.lang.Object
org.ngengine.components.jme3.AppComponentUpdater
- All Implemented Interfaces:
ComponentUpdater
Updates components using JME3 application resources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canUpdate
(ComponentManager fragmentManager, Component component) Check if the component can be updated by this updater.void
render
(ComponentManager fragmentManager, Component component) Call the render method for the component in the given component manager.void
update
(ComponentManager fragmentManager, Component component, float tpf) Update the component in the given component manager.
-
Constructor Details
-
AppComponentUpdater
-
-
Method Details
-
canUpdate
Description copied from interface:ComponentUpdater
Check if the component can be updated by this updater. This is used to determine if the component is compatible with this updater and can be updated without issues. If the component is not compatible, it will not be updated and the component manager will call the next available updater in the chain.- Specified by:
canUpdate
in interfaceComponentUpdater
- Parameters:
fragmentManager
- the component managercomponent
- the component to check- Returns:
- true if the component can be updated, false otherwise
-
update
Description copied from interface:ComponentUpdater
Update the component in the given component manager. This method is called every frame to update the component's state.- Specified by:
update
in interfaceComponentUpdater
- Parameters:
fragmentManager
- the component managercomponent
- the component to updatetpf
- time per frame, used for time-based updates
-
render
Description copied from interface:ComponentUpdater
Call the render method for the component in the given component manager. This method is called during the render phase to perform low-level rendering logic for the component.- Specified by:
render
in interfaceComponentUpdater
- Parameters:
fragmentManager
- the component managercomponent
- the component to render
-