Category:Implements Interface Bots

From Robowiki
Jump to navigation Jump to search

Some bots extend AdvancedRobot, some extend Robot. But there are bots that don't either. They implement interfaces that's required for a bot to fight.

This technique is first known in Chase-san's open source bot Nene.

Here is a good start for building your first robot that implements interface.

public class InterfaceRobot implements ITeamRobot, IPaintRobot, IInteractiveRobot {
  @Override
  public final Runnable getRobotRunnable() {
  }

  @Override
  public final IBasicEvents getBasicEventListener() {
  }

  @Override
  public final IAdvancedEvents getAdvancedEventListener() {
  }

  @Override
  public final ITeamEvents getTeamEventListener() {
  }

  @Override
  public final IPaintEvents getPaintEventListener() {
  }

  @Override
  public final IInteractiveEvents getInteractiveEventListener() {
  }

  @Override
  public final void setPeer(IBasicRobotPeer basicPeer) {
  }

  @Override
  public final void setOut(PrintStream out) {
  }
}

Pages in category "Implements Interface Bots"

The following 19 pages are in this category, out of 19 total.