Bandidos
|
Public Member Functions | |
RenderComponent (RenderInfo startRenderInfo, boolean isUI) | |
boolean | isUserInterface () |
boolean | isSortedOnY () |
int | getCurrentFrameInfo () |
void | setCurrentFrameInfo (int index) |
void | setSortOnY (boolean sortOnY) |
double | getInnerSortingLayer () |
int | getSortingLayer () |
void | setSortingLayer (int sortingLayer) |
float | getRealWidth () |
float | getRealHeight () |
float | getPivotX () |
float | getPivotY () |
void | setPivot (float pivotX, float pivotY, boolean keepPosition) |
RenderInfo | getRenderInfo () |
boolean | getCallsRenderAfterEntityRender () |
void | setCallsRenderAfterEntityRender (boolean renderAfterEntityRender) |
void | setAlpha (float alpha) |
float | getAlpha () |
EngineTween | doAlpha (float value, float duration, TweenStartType tweenStartType) |
EngineTween | doColor (Color color, float duration, TweenStartType tweenStartType) |
void | setColor (Color color) |
void | setColor (float r, float g, float b, float a) |
Color | getColor () |
void | setRenderInfo (RenderInfo info) |
Texture | getCurrentTexture () |
void | setCurrentTexture (Texture texture) |
boolean | getFlipX () |
boolean | getFlipY () |
void | setFlipX (boolean flipX) |
void | setFlipY (boolean flipY) |
int | compare (RenderComponent d, RenderComponent d1) |
int | compareTo (RenderComponent comp) |
void | awake () |
Public Member Functions inherited from com.mygdx.game.engine.entities.components.BaseEntityComponent | |
EngineTween | startTweenOnComponent (Tween tween, TweenStartType tweenStartType) |
Timeline | startTimelineOnComponent (Timeline timeline, boolean updateInGameTime) |
EngineTween | doFloat (TweenableFloat floatToTween, float newValue, float duration, TweenStartType tweenStartType) |
void | stopAllComponentTweens () |
void | initialize (BaseEntity parentEntity) |
BaseEntity | getParentOfComponent () |
boolean | isActive () |
boolean | isDestroyed () |
void | setActiveState (boolean activeState) |
void | destroy () |
void | update (float deltaTime) |
abstract void | awake () |
Public Member Functions inherited from com.mygdx.game.engine.events.EventDispatcher | |
void | addEventListener (String type, IEventReceiver listeningClass) |
void | dispatchEvent (Event event) |
void | removeEventListener (String type, IEventReceiver listener) |
boolean | hasEventListener (String type) |
ArrayList< ListenerItem > | getAllListeners () |
void | destroyAllListeners () |
void | clean () |
Protected Member Functions | |
void | updated (float deltaTime) |
void | destroyed () |
void | activeStateChanged () |
Protected Member Functions inherited from com.mygdx.game.engine.entities.components.BaseEntityComponent | |
abstract void | updated (float deltaTime) |
abstract void | destroyed () |
abstract void | activeStateChanged () |
This component contains the 2D render information of the entity it is attached to. (Texture to render, pivot point, height and width)
com.mygdx.game.engine.entities.components.rendering.RenderComponent.RenderComponent | ( | RenderInfo | startRenderInfo, |
boolean | isUI | ||
) |
|
protected |
void com.mygdx.game.engine.entities.components.rendering.RenderComponent.awake | ( | ) |
int com.mygdx.game.engine.entities.components.rendering.RenderComponent.compare | ( | RenderComponent | d, |
RenderComponent | d1 | ||
) |
int com.mygdx.game.engine.entities.components.rendering.RenderComponent.compareTo | ( | RenderComponent | comp | ) |
|
protected |
EngineTween com.mygdx.game.engine.entities.components.rendering.RenderComponent.doAlpha | ( | float | value, |
float | duration, | ||
TweenStartType | tweenStartType | ||
) |
Tweens the entity to the given alpha in the given duration. The Tween can still be modified by the return value The Tween will be updated in the Component channel. (EngineTweener)
value | indicates the alpha to tween to. 1 is fully visible and 0 is not visible |
duration | in seconds on how long to take until reaching the alpha value |
gameTime | means, when set to true, this tween will be effected by the Time Scale of the game, else it will not (False recommended for UI elements) Tween which will be executed. |
EngineTween com.mygdx.game.engine.entities.components.rendering.RenderComponent.doColor | ( | Color | color, |
float | duration, | ||
TweenStartType | tweenStartType | ||
) |
Tweens the entity to the given color in the given duration. The Tween can still be modified by the return value The Tween will be updated in the Component channel. (EngineTweener)
color | indicates the color to tween to. |
duration | in seconds on how long to take until reaching the color value |
gameTime | means, when set to true, this tween will be effected by the Time Scale of the game, else it will not (False recommended for UI elements) Tween which will be executed. |
float com.mygdx.game.engine.entities.components.rendering.RenderComponent.getAlpha | ( | ) |
This gets the alpha of the Color which is modifying the current entity.
boolean com.mygdx.game.engine.entities.components.rendering.RenderComponent.getCallsRenderAfterEntityRender | ( | ) |
Returns If true, that means the 'Rendered' method in the Entity is called after this component is rendered. Else, if false, it will be called before
Color com.mygdx.game.engine.entities.components.rendering.RenderComponent.getColor | ( | ) |
This gets the color which is modifying the current entity. The color White equals its original color
int com.mygdx.game.engine.entities.components.rendering.RenderComponent.getCurrentFrameInfo | ( | ) |
Texture com.mygdx.game.engine.entities.components.rendering.RenderComponent.getCurrentTexture | ( | ) |
Gets the current texture being rendered.
boolean com.mygdx.game.engine.entities.components.rendering.RenderComponent.getFlipX | ( | ) |
Returns whether the image is flipped Horizontally
boolean com.mygdx.game.engine.entities.components.rendering.RenderComponent.getFlipY | ( | ) |
Returns whether the image is flipped Vertically
double com.mygdx.game.engine.entities.components.rendering.RenderComponent.getInnerSortingLayer | ( | ) |
Returns the sorting value in the entity its layer which it is sorted on.
float com.mygdx.game.engine.entities.components.rendering.RenderComponent.getPivotX | ( | ) |
Gets the pivot point's x position. 0 being the far left side and 1 being the far right side of the image.
float com.mygdx.game.engine.entities.components.rendering.RenderComponent.getPivotY | ( | ) |
Gets the pivot point's position. 0 being the bottom and 1 being the top of the image
float com.mygdx.game.engine.entities.components.rendering.RenderComponent.getRealHeight | ( | ) |
Gets the height of the texture * the scaleY of the entity
float com.mygdx.game.engine.entities.components.rendering.RenderComponent.getRealWidth | ( | ) |
Gets the width of the texture * the scaleX of the entity
RenderInfo com.mygdx.game.engine.entities.components.rendering.RenderComponent.getRenderInfo | ( | ) |
Gets the RenderInfo set in the RenderComponent to use for display.
int com.mygdx.game.engine.entities.components.rendering.RenderComponent.getSortingLayer | ( | ) |
The sorting layer indicates the render layer of the entity. The higher the value, the more priority the entity has. (0 will be rendered under 1 and so on)
boolean com.mygdx.game.engine.entities.components.rendering.RenderComponent.isSortedOnY | ( | ) |
Indicates whether the renderComponent is rendered in its layer on its y position.
boolean com.mygdx.game.engine.entities.components.rendering.RenderComponent.isUserInterface | ( | ) |
Returns whether this is rendered on the main camera or the hud camera
void com.mygdx.game.engine.entities.components.rendering.RenderComponent.setAlpha | ( | float | alpha | ) |
This sets the alpha of the Color which is modifying the current entity.
alpha | to set the current modifying Color to. |
void com.mygdx.game.engine.entities.components.rendering.RenderComponent.setCallsRenderAfterEntityRender | ( | boolean | renderAfterEntityRender | ) |
Sets render order. If true, that means the 'Rendered' method in the Entity is called after this component is rendered. Else, if false, it will be called before
renderAfterEntityRender | means: True, it will call the 'rendered' method after the entity is rendered, else false |
void com.mygdx.game.engine.entities.components.rendering.RenderComponent.setColor | ( | Color | color | ) |
This sets the color which is modifying the current entity. The color White equals its original color
color | to set the value to. |
void com.mygdx.game.engine.entities.components.rendering.RenderComponent.setColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
This sets the color which is modifying the current entity. The color White equals its original color
r | is the red channel to set (0 - 1) |
g | is the green channel to set (0 - 1) |
b | is the blue channel to set (0 - 1) |
a | is the alpha channel to set (0 - 1) |
void com.mygdx.game.engine.entities.components.rendering.RenderComponent.setCurrentFrameInfo | ( | int | index | ) |
Sets the frame info index which should be displayed
index | is the index of the current frame info |
void com.mygdx.game.engine.entities.components.rendering.RenderComponent.setCurrentTexture | ( | Texture | texture | ) |
Sets the current texture to render
texture | to set as new texture to render on screen. |
void com.mygdx.game.engine.entities.components.rendering.RenderComponent.setFlipX | ( | boolean | flipX | ) |
Sets whether the image should flip horizontally
flipX | true indicates it flips else it does not |
void com.mygdx.game.engine.entities.components.rendering.RenderComponent.setFlipY | ( | boolean | flipY | ) |
Sets whether the image should flip vertically
flipY | true indicates it flips else it does not |
void com.mygdx.game.engine.entities.components.rendering.RenderComponent.setPivot | ( | float | pivotX, |
float | pivotY, | ||
boolean | keepPosition | ||
) |
Sets the pivot point to the new value. X = 0 being the far left side and 1 being the far right side of the image. Y = 0 being the bottom and 1 being the top of the image
pivotX | the new x Pivot value |
pivotY | the new y Pivot value |
keepPosition | means that it will keep its current render position and move the object data position to do so. |
void com.mygdx.game.engine.entities.components.rendering.RenderComponent.setRenderInfo | ( | RenderInfo | info | ) |
Sets the current render info and cleans the previous one.
info | to set as new RenderInfo for this component. |
void com.mygdx.game.engine.entities.components.rendering.RenderComponent.setSortingLayer | ( | int | sortingLayer | ) |
The sorting layer indicates the render layer of the entity. The higher the value, the more priority the entity has. (0 will be rendered under 1 and so on)
sortingLayer | is the new layer sorting value for the entity |
void com.mygdx.game.engine.entities.components.rendering.RenderComponent.setSortOnY | ( | boolean | sortOnY | ) |
Sets if the entity should be rendered on its Y position.
sortOnY | true means it will be sorted on Y position, else it will not. |
|
protected |