WorldAPI.java
Go to the documentation of this file.
1 
8 public interface WorldAPI
9 {
10  /*/**********************************************
11  * Movement Methods
12  ***********************************************/
13 
21  Robot.AttackResult meleeAttack(int power, Robot.GridCell adjacent_cell) throws RoboSim.RoboSimExecutionException;
22 
30  Robot.AttackResult rangedAttack(int power, Robot.GridCell nonadjacent_cell) throws RoboSim.RoboSimExecutionException;
31 
37  Robot.AttackResult capsuleAttack(int power_of_capsule, Robot.GridCell cell) throws RoboSim.RoboSimExecutionException;
38 
43  void defend(int power) throws RoboSim.RoboSimExecutionException;
44 
45  /*/**********************************************
46  * Movement Methods
47  ***********************************************/
48 
54  void move(int steps, Robot.Direction way) throws RoboSim.RoboSimExecutionException;
55 
61  void pick_up_capsule(Robot.GridCell adjacent_cell) throws RoboSim.RoboSimExecutionException;
62 
68  void drop_capsule(Robot.GridCell adjacent_cell, int power_of_capsule) throws RoboSim.RoboSimExecutionException;
69 
70  /*/**********************************************
71  * Construction Methods
72  ***********************************************/
73 
80 
85 
89 
106  void setBuildTarget(Robot.BuildStatus status, Robot.GridCell location) throws RoboSim.RoboSimExecutionException;
107 
126  void setBuildTarget(Robot.BuildStatus status, Robot.GridCell location, byte[] creation_message) throws RoboSim.RoboSimExecutionException;
127 
132  void build(int power) throws RoboSim.RoboSimExecutionException;
133 
138  void repair(int power) throws RoboSim.RoboSimExecutionException;
139 
145  void charge(int power, Robot.GridCell ally) throws RoboSim.RoboSimExecutionException;
146 
147  /*/**********************************************
148  * Radio Methods
149  ***********************************************/
150 
159  /*byte[][] getMessages(int power);*/ //disabled
160 
166  void sendMessage(byte[] message, int power) throws RoboSim.RoboSimExecutionException;
167 
175 
185 
194  void scanEnemy(Robot.Robot_Specs enemySpecs, Robot.Robot_Status enemyStatus, Robot.GridCell toScan) throws RoboSim.RoboSimExecutionException;
195 
202  /*void jamRadio(int power);*/ //disabled
203 }
Robot.GridCell[][] getWorld(int power)
void drop_capsule(Robot.GridCell adjacent_cell, int power_of_capsule)
void sendMessage(byte[] message, int power)
void setBuildTarget(Robot.BuildStatus status, Robot.GridCell location)
Definition: Robot.java:11
void move(int steps, Robot.Direction way)
void build(int power)
void scanEnemy(Robot.Robot_Specs enemySpecs, Robot.Robot_Status enemyStatus, Robot.GridCell toScan)
Robot.BuildStatus getBuildStatus()
Robot.GridCell getBuildTarget()
int getInvestedBuildPower()
void defend(int power)
void pick_up_capsule(Robot.GridCell adjacent_cell)
void repair(int power)
void charge(int power, Robot.GridCell ally)
Robot.AttackResult meleeAttack(int power, Robot.GridCell adjacent_cell)
Robot.AttackResult capsuleAttack(int power_of_capsule, Robot.GridCell cell)
Robot.AttackResult rangedAttack(int power, Robot.GridCell nonadjacent_cell)
Robot.GridCell[][] getVisibleNeighborhood()