Package com.pixelmonmod.tcg.duel.log
Class DuelLog
java.lang.Object
com.pixelmonmod.tcg.duel.log.DuelLog
Created by SamPlummer on 09/07/2016.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addItem
(DuelLogItem item) getItems()
getItems
(int count) Get last items from the logvoid
void
trackAbility
(PokemonCardState activator, int playerSide, GameServerState state) void
trackAttachCard
(CommonCardState attachment, PokemonCardState host, int playerSide, GameServerState state) void
trackAttack
(CardAttack cardAttack, PokemonCardState attacker, PokemonCardState attacking, int damage, List<org.apache.commons.lang3.tuple.Pair<CardCondition, Integer>> conditions, int playerSide, GameServerState state) void
trackCondition
(CardCondition cardCondition, PokemonCardState affected, int damage, boolean isHealed, int playerSide, GameServerState state) void
trackDiscard
(CommonCardState discarded, int playerSide, GameServerState state) void
trackDrawCard
(int count, int playerSide, GameServerState state) void
trackEndGame
(int winnerIndex, GameServerState state) void
trackEvolve
(PokemonCardState prev, PokemonCardState next, int playerSide, GameServerState state) void
trackKnockout
(PokemonCardState dead, int playerSide, GameServerState state) void
trackPlayCard
(CommonCardState played, int playerSide, GameServerState state) void
trackStalemate
(GameServerState state) void
trackStartGame
(GameServerState state) void
trackStartTurn
(int playerSide, GameServerState state) void
trackSwitch
(PokemonCardState in, int playerSide, GameServerState state) void
write
(net.minecraft.network.FriendlyByteBuf buf, GamePhase gamePhase, int receiverIndex, boolean isMyTurn)
-
Constructor Details
-
DuelLog
public DuelLog() -
DuelLog
public DuelLog(net.minecraft.network.FriendlyByteBuf buf)
-
-
Method Details
-
write
public void write(net.minecraft.network.FriendlyByteBuf buf, GamePhase gamePhase, int receiverIndex, boolean isMyTurn) -
saveLog
- Throws:
IOException
-
addItem
-
getItems
Get last items from the log- Parameters:
count
-- Returns:
-
getItems
-
trackAttack
public void trackAttack(CardAttack cardAttack, PokemonCardState attacker, PokemonCardState attacking, int damage, List<org.apache.commons.lang3.tuple.Pair<CardCondition, Integer>> conditions, int playerSide, GameServerState state) -
trackAbility
-
trackCondition
public void trackCondition(CardCondition cardCondition, PokemonCardState affected, int damage, boolean isHealed, int playerSide, GameServerState state) -
trackKnockout
-
trackPlayCard
-
trackAttachCard
public void trackAttachCard(CommonCardState attachment, PokemonCardState host, int playerSide, GameServerState state) -
trackDrawCard
-
trackDiscard
-
trackEvolve
public void trackEvolve(PokemonCardState prev, PokemonCardState next, int playerSide, GameServerState state) -
trackSwitch
-
trackStartGame
-
trackEndGame
-
trackStalemate
-
trackStartTurn
-