com.b3dgs.lionengine.game.purviews
Interface Mirrorable

All Known Implementing Classes:
AbstractBuilding, AbstractEnemy, AbstractEntity, AbstractEntry, AbstractHero, AbstractPlatformEntity, AbstractRasteredPlatformEntity, AbstractUnit, Entity, Projectile

public interface Mirrorable

Purview representing an object with the abiliy of being mirrored. Mainly used with sprites (horizontal axis).


Method Summary
 void cancelMirror(boolean state)
          Set cancel state for the mirror operation.
 boolean getCancelMirror()
          Get mirror cancel state.
 boolean getMirror()
          Get current mirror state.
 void mirror(boolean state)
          Set the next mirror state and apply it on next turn.
 void updateMirror()
          Update mirror and apply it if necessary.
 

Method Detail

mirror

void mirror(boolean state)
Set the next mirror state and apply it on next turn.

Parameters:
state - next mirror state.

updateMirror

void updateMirror()
Update mirror and apply it if necessary.


cancelMirror

void cancelMirror(boolean state)
Set cancel state for the mirror operation.

Parameters:
state - state.

getCancelMirror

boolean getCancelMirror()
Get mirror cancel state.

Returns:
mirror cancel state.

getMirror

boolean getMirror()
Get current mirror state.

Returns:
current mirror state.