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 implements ICard
11 public String getName() {
16 public IValue returnValue(final IValue iobj, Player proponent, Player opponent)
21 public String getName() {
26 public IValue returnValue(final IValue x, Player proponent, Player opponent)
28 if (iobj instanceof Value)
30 int i = ((Value)iobj).getValue();
32 if (i >= 0 && i <= 255)
34 int v = opponent.getSlot(255 - i).getVitality();
38 opponent.getSlot(255 - i).putValue(x);
39 opponent.getSlot(255 - i).setVitality(-1);
45 throw new ICFPCException();
50 throw new ICFPCException();
55 throw new ICFPCException();