-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlagStatusHandler.java
37 lines (33 loc) · 1.08 KB
/
FlagStatusHandler.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
import core.ai.AiFlagInfo;
/**
* This interface should have specified the methods to
* handle flag changes. But because of class loader restrictions,
* the bot cannot have any interfaces :(
* @unused
*
* @author Oskar Kirmis <[email protected]>
*/
public interface FlagStatusHandler
{
/**
* This handler is called whenever a flag loses its "owned" state
*
* @param flagIndex Index of the flag which was captured
* @param flags List of current flag states
*/
public void onFlagFreed( AiFlagInfo[] flags, int flagIndex );
/**
* This handler is called whenever an other bot captures a flag
*
* @param flagIndex Index of the flag which was captured
* @param flags List of current flag states
*/
public void onOtherCapturedFlag( AiFlagInfo[] flags, int flagIndex );
/**
* This handler is called when our bot captured a flag
*
* @param flagIndex Index of the flag that was captured
* @param flags List of current flag states
*/
public void onSelfCapturedFlag( AiFlagInfo[] flags, int flagIndex );
}