java.lang.Object
dev.aurumbyte.sypherengine.components.Component
- Direct Known Subclasses:
- AABB,- Animator2D
The base component class, which all components must extend
- Since:
- v0.3.2
- Author:
- AurumByte
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic AABBgetAABBComponent(List<Component> components) Getting an AABB component out of all componentsabstract voidrender(SypherEngine engine) The abstract render method, to be overridden by the userabstract voidupdate(float deltaTime) The abstract update method, to be overridden by the user
- 
Field Details- 
componentTagString componentTagThe name of the component
 
- 
- 
Constructor Details- 
Componentpublic Component()
 
- 
- 
Method Details- 
updatepublic abstract void update(float deltaTime) The abstract update method, to be overridden by the user - Parameters:
- deltaTime- The deltaTime of the game, kinda useless as the update rates are fixed, but nice to have just in case
- Since:
- 0.3.2
 
- 
renderThe abstract render method, to be overridden by the user - Parameters:
- engine- The main engine, used for rendering purposes the game
- Since:
- 0.3.2
 
- 
getAABBComponentGetting an AABB component out of all components - Parameters:
- components- The list of components
- Since:
- 0.3.2
 
 
-