Category:Implements Interface Bots

From Robowiki
Revision as of 16:30, 21 February 2018 by Xor (talk | contribs) (Initial commit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 17 pages are in this category, out of 17 total.