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 Get extends AbstractCard
11 public String getName() {
16 public IValue returnValue(IValue iobj, Player proponent, Player opponent)
20 if (iobj instanceof Value)
22 int i = ((Value)iobj).getValue();
24 if(i >= 0 && i <= 255)
26 int v = proponent.getSlot(i).getVitality();
30 return proponent.getSlot(i).getValue();
34 throw new ICFPCException();
39 throw new ICFPCException();
44 throw new ICFPCException();