Class PokemonCardState

java.lang.Object
com.pixelmonmod.tcg.duel.state.CommonCardState
com.pixelmonmod.tcg.duel.state.PokemonCardState

public class PokemonCardState extends CommonCardState
Created by Hy on 5/10/2016.
  • Field Details

    • turn

      protected int turn
  • Constructor Details

    • PokemonCardState

      public PokemonCardState(BaseTrainerEffect effect, TrainerCardState trainer, int turn)
    • PokemonCardState

      public PokemonCardState(ImmutableCard card, int turn)
    • PokemonCardState

      public PokemonCardState(net.minecraft.network.FriendlyByteBuf buf)
  • Method Details

    • transform

      public void transform(ImmutableCard card, PokemonCardStatus stats)
      Overrides:
      transform in class CommonCardState
    • write

      protected void write(net.minecraft.network.FriendlyByteBuf buf, boolean faceUp, boolean writeParams)
      Overrides:
      write in class CommonCardState
      writeParams - This is to prevent circular reference when parameters contains this card
    • handleEndTurn

      public void handleEndTurn(PokemonCardState attachTo, PlayerServerState player, GameServerState server)
      Description copied from class: CommonCardState
      Clear all the parameters stored in the cards when the turns ends, unless the power effects state otherwise
      Overrides:
      handleEndTurn in class CommonCardState
      Parameters:
      attachTo - Pokemon card that this card attach to
      player -
      server -
    • addDamage

      public void addDamage(PokemonCardState attacker, int damage, GameServerState server)
    • addCondition

      public void addCondition(PokemonCardState attacker, CardCondition cardCondition, Integer modifier, GameServerState server)
    • addDamageFromCondition

      public void addDamageFromCondition(int d)
    • bindPreviousPokemonSprite

      public net.minecraft.resources.ResourceLocation bindPreviousPokemonSprite()
    • getPreviousPokemonSprite

      public net.minecraft.resources.ResourceLocation getPreviousPokemonSprite()
    • getAttachments

      public List<CommonCardState> getAttachments()
    • getPreviousPokemonID

      public int getPreviousPokemonID()
    • setPreviousPokemonID

      public void setPreviousPokemonID(int previousPokemonId)
    • getStatus

      public PokemonCardStatus getStatus()
    • setStatus

      public void setStatus(PokemonCardStatus s)
    • getAttacksStatus

      public PokemonAttackStatus[] getAttacksStatus()
    • getAbility

      public CardPower getAbility()
      Overrides:
      getAbility in class CommonCardState
    • setAbility

      public void setAbility(CardPower cardAbility)
    • abilitiesDisabled

      public boolean abilitiesDisabled()
    • disableAbilities

      public void disableAbilities(boolean disable)
    • getHiddenAbility

      public CardPower getHiddenAbility()
    • setHiddenAbility

      public void setHiddenAbility(CardPower hiddenCardAbility)
    • getWeakness

      public Energy getWeakness()
    • setWeakness

      public void setWeakness(Energy weakness)
    • getWeaknessModifier

      public CardModifier getWeaknessModifier()
    • setWeaknessModifier

      public void setWeaknessModifier(CardModifier weaknessCardModifier)
    • getWeaknessValue

      public int getWeaknessValue()
    • setWeaknessValue

      public void setWeaknessValue(int weaknessValue)
    • getResistance

      public Energy getResistance()
    • setResistance

      public void setResistance(Energy resistance)
    • getResistanceModifier

      public CardModifier getResistanceModifier()
    • setResistanceModifier

      public void setResistanceModifier(CardModifier resistanceCardModifier)
    • getResistanceValue

      public int getResistanceValue()
    • setResistanceValue

      public void setResistanceValue(int resistanceValue)
    • getRetreatCost

      public int getRetreatCost()
    • setRetreatCost

      public void setRetreatCost(int retreatCost)
    • getTurn

      public int getTurn()
    • setCanRetreat

      public void setCanRetreat(boolean canRetreat)
    • canRetreat

      public boolean canRetreat()