All Downloads are FREE. Search and download functionalities are using the official Maven repository.

robocode.robotinterfaces.IBasicEvents2 Maven / Gradle / Ivy

There is a newer version: 1.9.5.3
Show newest version
/*
 * Copyright (c) 2001-2023 Mathew A. Nelson and Robocode contributors
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * https://robocode.sourceforge.io/license/epl-v10.html
 */
package robocode.robotinterfaces;


import robocode.BattleEndedEvent;
import robocode.RoundEndedEvent;


/**
 * First extended version of the {@link IBasicEvents} interface.
 *
 * @author Pavel Savara (original)
 * @author Flemming N. Larsen (contributor)
 *
 * @since 1.6.1
 */
public interface IBasicEvents2 extends IBasicEvents {

	/**
	 * This method is called after the end of the battle, even when the battle is aborted.
	 * You should override it in your robot if you want to be informed of this event.
	 * 

* Example: *

	 *   public void onBattleEnded(BattleEndedEvent event) {
	 *       out.println("The battle has ended");
	 *   }
	 * 
* * @param event the BattleEndedEvent set by the game * @see BattleEndedEvent * @see IBasicEvents3#onRoundEnded(RoundEndedEvent) * @see robocode.WinEvent * @see robocode.DeathEvent * @see robocode.Event * * @since 1.6.1 */ void onBattleEnded(BattleEndedEvent event); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy