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