Class AbstractPokemonScenePositioningStrategy
java.lang.Object
com.pixelmonmod.pixelmon.client.render.battle.positioning.AbstractPokemonScenePositioningStrategy
- All Implemented Interfaces:
ScenePositioningStrategy
- Direct Known Subclasses:
AllyPokemonScenePositioningStrategy,OpponentPokemonScenePositioningStrategy,PlayerPokemonScenePositioningStrategy
public abstract class AbstractPokemonScenePositioningStrategy
extends Object
implements ScenePositioningStrategy
Base strategy for placing one side of active battle Pokemon.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(BattleSceneClientLevel scene, ClientBattleManager battleManager) Places the entities owned by this strategy.booleanisApplicable(BattleSceneClientLevel scene, ClientBattleManager battleManager) Checks whether this strategy can apply its placement responsibility to the current battle and scene.protected abstract PixelmonClientData[]pokemon(ClientBattleManager battleManager) protected abstract Stringside()
-
Constructor Details
-
AbstractPokemonScenePositioningStrategy
public AbstractPokemonScenePositioningStrategy()
-
-
Method Details
-
isApplicable
Description copied from interface:ScenePositioningStrategyChecks whether this strategy can apply its placement responsibility to the current battle and scene.- Specified by:
isApplicablein interfaceScenePositioningStrategy- Parameters:
scene- the active battle scenebattleManager- the current client battle state- Returns:
- true if this strategy has enough state and markers to apply
-
apply
Description copied from interface:ScenePositioningStrategyPlaces the entities owned by this strategy.- Specified by:
applyin interfaceScenePositioningStrategy- Parameters:
scene- the active battle scenebattleManager- the current client battle state
-
pokemon
-
side
-