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 a BlendableEntity.
Direct Known Subclasses:
Shape, TextureBasedEntity

public abstract class BlendableEntity<T extends Entity<?>> extends Entity<T>
Any PIXI Entity that can be attributed a BlendMode.
  • Constructor Details

    • BlendableEntity

      public BlendableEntity()
  • Method Details

    • getBlendMode

      public BlendableEntity.BlendMode getBlendMode()
      Returns the BlendMode this TextureBasedEntity is to be drawn with.
      Returns:
      the BlendMode this TextureBasedEntity is to be drawn with.
      See Also:
    • setBlendMode

      public T setBlendMode(BlendableEntity.BlendMode blendMode)

      Sets the blend mode for this TextureBasedEntity.

      The possible values are found in BlendMode.
      Parameters:
      blendMode - the BlendMode to use.
      Returns:
      this TextureBasedEntity.
      See Also: