void onHitByBullet(HitByBulletEvent event) { out.println(event.getRobotName() + " hit me!"); }
162163164165166167168169170171172
@Override final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) { IBasicEvents listener = robot.getBasicEventListener(); if (listener != null) { listener.onHitByBullet(this); } } /** * {@inheritDoc}