-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameInfo.java
40 lines (35 loc) · 1.15 KB
/
GameInfo.java
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
package org.bot;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.bot.enums.GameConstantsEnum;
import java.awt.*;
import java.util.Collections;
import java.util.SortedSet;
/**
* In the class storing both static information which are time immutable
* and dynamic data which are actually for one image screenshot
*/
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor(force = true)
public class GameInfo {
// for full window mode x = 836 y = 839
public static final int START_X = 831;
public static final int START_Y = 869;
public static final int WIDTH = 258;
public static final int HEIGHT = 153;
private Point activePlayer;
private final Point ball;
private boolean isPlaymateBallPossession;
private boolean isNobodyBallPossession;
private final boolean isShadingField;
private final boolean isCorner;
private final GameConstantsEnum playmateSide;
private SortedSet<Point> playmates = Collections.emptySortedSet();
private SortedSet<Point> opposites = Collections.emptySortedSet();
@ToString.Exclude
private final int[][] pixels;
}