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
Modifier and TypeClassDescriptionstatic enum
The list of supported PIXI blend modes and their associated constant. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns theBlendMode
thisTextureBasedEntity
is 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 theBlendMode
thisTextureBasedEntity
is to be drawn with.- Returns:
- the
BlendMode
thisTextureBasedEntity
is to be drawn with. - See Also:
-
setBlendMode
Sets the blend mode for this
The possible values are found inTextureBasedEntity
.BlendMode
.- Parameters:
blendMode
- theBlendMode
to use.- Returns:
- this
TextureBasedEntity
. - See Also:
-