| author | akhmetovlz |
| Sat, 18 Jun 2011 19:43:09 +0400 | |
| changeset 21 | b0748d485790 |
| parent 12 | 042162c73d0f |
| child 49 | 2c94d860cd24 |
| 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 Get implements ICard
8 {
9 @Override
10 public IValue returnValue(IValue value, Player proponent, Player opponent)
11 {
12 if (value.getClass().equals(Value.class))
13 {
14 return proponent.getSlot(((Value)value).getValue()).getValue();
15 }
16 else
17 {
18 return new Value(-100);
19 }
20 }
22 }