blob: 6069019db0b42feb9746d5cf65ac79506d0275fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
package jrummikub.view;
import java.util.ArrayList;
import java.util.List;
import jrummikub.model.Position;
import jrummikub.model.Stone;
import jrummikub.util.Event2;
import jrummikub.util.IEvent1;
import jrummikub.util.IEvent2;
import jrummikub.util.Pair;
public class MockHandPanel implements IHandPanel {
public Event2<Stone, Boolean> stoneClickEvent = new Event2<Stone, Boolean>();
public List<Pair<Stone, Position>> stones;
public Event2<Stone, Boolean> rangeClickEvent = new Event2<Stone, Boolean>();
@Override
public IEvent2<Stone, Boolean> getStoneClickEvent() {
return stoneClickEvent;
}
@Override
public IEvent2<Stone, Boolean> getRangeClickEvent() {
return rangeClickEvent;
}
@Override
public IEvent2<Stone, Boolean> getSetClickEvent() {
// TODO Auto-generated method stub
return null;
}
@Override
public IEvent1<Position> getClickEvent() {
// TODO Auto-generated method stub
return null;
}
@Override
public void setStones(Iterable<Pair<Stone, Position>> stones) {
this.stones = new ArrayList<Pair<Stone, Position>>();
for (Pair<Stone, Position> entry : stones) {
this.stones.add(entry);
}
}
@Override
public void setHandWidth(int width) {
// TODO Auto-generated method stub
}
@Override
public void setHandHeight(int height) {
// TODO Auto-generated method stub
}
}
|