equal
deleted
inserted
replaced
1 package ru.alpha.ltg.cards; |
|
2 |
|
3 import ru.alpha.ltg.cards.api.ICard; |
|
4 import ru.alpha.ltg.cards.api.IPlayer; |
|
5 import ru.alpha.ltg.cards.api.IValue; |
|
6 import ru.alpha.ltg.cards.api.Value; |
|
7 |
|
8 public class Get implements ICard |
|
9 { |
|
10 @Override |
|
11 public IValue returnValue(IValue value, IPlayer proponent, IPlayer opponent) |
|
12 { |
|
13 if (value.getClass().equals(Value.class)) |
|
14 { |
|
15 return proponent.getSlot(((Value)value).getValue()).getValue(); |
|
16 } |
|
17 else |
|
18 { |
|
19 return new Value(-100); |
|
20 } |
|
21 } |
|
22 |
|
23 } |
|