equal
deleted
inserted
replaced
|
1 package ru.alphatech.icfpc.cards; |
|
2 |
|
3 import ru.alphatech.icfpc.cards.api.ICard; |
|
4 import ru.alphatech.icfpc.cards.api.IPlayer; |
|
5 import ru.alphatech.icfpc.cards.api.IValue; |
|
6 import ru.alphatech.icfpc.cards.api.Value; |
|
7 |
|
8 public class Copy implements ICard |
|
9 { |
|
10 @Override |
|
11 public IValue returnValue(IValue i, IPlayer proponent, IPlayer opponent) |
|
12 { |
|
13 if (i.getClass().equals(Value.class)) |
|
14 { |
|
15 return opponent.getSlot(((Value)i).getValue()).getValue(); |
|
16 } |
|
17 |
|
18 return null; |
|
19 } |
|
20 } |