Call Count.
1 package ru.alphatech.icfpc.cards;
3 import ru.alphatech.icfpc.game.ICFPCException;
4 import ru.alphatech.icfpc.game.IValue;
5 import ru.alphatech.icfpc.game.Player;
6 import ru.alphatech.icfpc.game.Value;
8 public class Zombie extends AbstractCard
11 public String getName() {
16 public IValue returnValue(final IValue iobj, Player proponent, Player opponent)
20 return new AbstractCard()
23 public String getName() {
28 public IValue returnValue(final IValue x, Player proponent, Player opponent)
32 if (iobj instanceof Value)
34 int i = ((Value)iobj).getValue();
36 if (i >= 0 && i <= 255)
38 int v = opponent.getSlot(255 - i).getVitality();
42 opponent.getSlot(255 - i).putValue(x);
43 opponent.getSlot(255 - i).setVitality(-1);
49 throw new ICFPCException();
54 throw new ICFPCException();
59 throw new ICFPCException();