| author | Azamat S. Kalimoulline <turtle@bazon.ru> |
| Sat, 18 Jun 2011 11:32:53 +0400 | |
| changeset 11 | 33269feb0642 |
| parent 10 | 3d78a084dbba |
| child 12 | 042162c73d0f |
| permissions | -rw-r--r-- |
1 package ru.alphatech.icfpc.cards;
3 import ru.alphatech.icfpc.cards.api.ICard;
4 import ru.alphatech.icfpc.cards.api.Player;
5 import ru.alphatech.icfpc.cards.api.IValue;
6 import ru.alphatech.icfpc.cards.api.Value;
8 public class Copy implements ICard
9 {
10 @Override
11 public IValue returnValue(IValue i, Player proponent, Player opponent)
12 {
13 if (i.getClass().equals(Value.class))
14 {
15 return opponent.getSlot(((Value)i).getValue()).getValue();
16 }
18 return null;
19 }
20 }