Class BlendableEntity<T extends Entity<?>>
java.lang.Object
com.codingame.gameengine.module.entities.Entity<T>
com.codingame.gameengine.module.entities.BlendableEntity<T>
- Type Parameters:
T- a subclass inheriting Entity, used in order to return this as a T instead of aBlendableEntity.
- Direct Known Subclasses:
Shape,TextureBasedEntity
Any PIXI Entity that can be attributed a
BlendMode.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe list of supported PIXI blend modes and their associated constant. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theBlendModethisTextureBasedEntityis to be drawn with.setBlendMode(BlendableEntity.BlendMode blendMode) Sets the blend mode for thisTextureBasedEntity.Methods inherited from class com.codingame.gameengine.module.entities.Entity
getAlpha, getId, getMask, getParent, getRotation, getScaleX, getScaleY, getSkewX, getSkewY, getX, getY, getZIndex, isVisible, requireValidAlpha, requireValidColor, self, set, set, setAlpha, setAlpha, setMask, setMask, setRotation, setRotation, setScale, setScale, setScaleX, setScaleX, setScaleY, setScaleY, setSkewX, setSkewX, setSkewY, setSkewY, setVisible, setX, setX, setY, setY, setZIndex
-
Constructor Details
-
BlendableEntity
public BlendableEntity()
-
-
Method Details
-
getBlendMode
Returns theBlendModethisTextureBasedEntityis to be drawn with.- Returns:
- the
BlendModethisTextureBasedEntityis to be drawn with. - See Also:
-
setBlendMode
Sets the blend mode for this
The possible values are found inTextureBasedEntity.BlendMode.- Parameters:
blendMode- theBlendModeto use.- Returns:
- this
TextureBasedEntity. - See Also:
-