Class DuelLogAttackParameters
java.lang.Object
com.pixelmonmod.tcg.duel.log.parameters.DuelLogParameters
com.pixelmonmod.tcg.duel.log.parameters.DuelLogAttackParameters
Created by Hy on 8/13/2016.
-
Constructor Summary
ConstructorDescriptionDuelLogAttackParameters
(CardAttack cardAttack, PokemonCardState attacker, PokemonCardState attacking, int damage, List<org.apache.commons.lang3.tuple.Pair<CardCondition, Integer>> conditions) DuelLogAttackParameters
(net.minecraft.network.FriendlyByteBuf buf) This recover only parts of the PokemonCardState information -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.commons.lang3.tuple.Pair<CardCondition,
Integer>> int
void
write
(net.minecraft.network.FriendlyByteBuf buf, GamePhase gamePhase, int itemPlayerIndex, int receiverIndex, boolean isMyTurn) Write parameters into the buffer
-
Constructor Details
-
DuelLogAttackParameters
public DuelLogAttackParameters(CardAttack cardAttack, PokemonCardState attacker, PokemonCardState attacking, int damage, List<org.apache.commons.lang3.tuple.Pair<CardCondition, Integer>> conditions) -
DuelLogAttackParameters
public DuelLogAttackParameters(net.minecraft.network.FriendlyByteBuf buf) This recover only parts of the PokemonCardState information- Parameters:
buf
-
-
-
Method Details
-
write
public void write(net.minecraft.network.FriendlyByteBuf buf, GamePhase gamePhase, int itemPlayerIndex, int receiverIndex, boolean isMyTurn) Description copied from class:DuelLogParameters
Write parameters into the buffer- Specified by:
write
in classDuelLogParameters
- Parameters:
buf
- Byte buffergamePhase
- Current game phaseitemPlayerIndex
- The player index of the itemreceiverIndex
- The player index of the receiverisMyTurn
- Is receiver's turn
-
getAttack
-
getAttacker
-
getAttacking
-
getDamage
public int getDamage() -
getConditions
-