| author | akhmetovlz |
| Sun, 19 Jun 2011 11:59:52 +0400 | |
| changeset 34 | 85894dec2280 |
| parent 12 | 042162c73d0f |
| child 35 | 743564afa994 |
| permissions | -rw-r--r-- |
1 package ru.alphatech.icfpc.cards;
3 import ru.alphatech.icfpc.game.IValue;
4 import ru.alphatech.icfpc.game.Player;
5 import ru.alphatech.icfpc.game.Value;
7 public class Copy implements ICard
8 {
9 @Override
10 public IValue returnValue(IValue i, Player proponent, Player opponent)
11 {
12 if (i.getClass().equals(Value.class))
13 {
14 return opponent.getSlot(((Value)i).getValue()).getValue();
15 }
17 return null;
18 }
19 }