public class DuelLog
extends java.lang.Object
Constructor and Description |
---|
DuelLog() |
DuelLog(net.minecraft.network.PacketBuffer buf) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(DuelLogItem item) |
java.util.List<DuelLogItem> |
getItems() |
java.util.List<DuelLogItem> |
getItems(int count)
Get last items from the log
|
void |
saveLog(java.lang.String location) |
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,
java.util.List<org.apache.commons.lang3.tuple.Pair<CardCondition,java.lang.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.PacketBuffer buf,
GamePhase gamePhase,
int receiverIndex,
boolean isMyTurn) |
public DuelLog()
public DuelLog(net.minecraft.network.PacketBuffer buf)
public void write(net.minecraft.network.PacketBuffer buf, GamePhase gamePhase, int receiverIndex, boolean isMyTurn)
public void saveLog(java.lang.String location) throws java.io.IOException
java.io.IOException
public void addItem(DuelLogItem item)
public java.util.List<DuelLogItem> getItems(int count)
count
- public java.util.List<DuelLogItem> getItems()
public void trackAttack(CardAttack cardAttack, PokemonCardState attacker, PokemonCardState attacking, int damage, java.util.List<org.apache.commons.lang3.tuple.Pair<CardCondition,java.lang.Integer>> conditions, int playerSide, GameServerState state)
public void trackAbility(PokemonCardState activator, int playerSide, GameServerState state)
public void trackCondition(CardCondition cardCondition, PokemonCardState affected, int damage, boolean isHealed, int playerSide, GameServerState state)
public void trackKnockout(PokemonCardState dead, int playerSide, GameServerState state)
public void trackPlayCard(CommonCardState played, int playerSide, GameServerState state)
public void trackAttachCard(CommonCardState attachment, PokemonCardState host, int playerSide, GameServerState state)
public void trackDrawCard(int count, int playerSide, GameServerState state)
public void trackDiscard(CommonCardState discarded, int playerSide, GameServerState state)
public void trackEvolve(PokemonCardState prev, PokemonCardState next, int playerSide, GameServerState state)
public void trackSwitch(PokemonCardState in, int playerSide, GameServerState state)
public void trackStartGame(GameServerState state)
public void trackEndGame(int winnerIndex, GameServerState state)
public void trackStalemate(GameServerState state)
public void trackStartTurn(int playerSide, GameServerState state)