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

robocode.BorderSentry Maven / Gradle / Ivy

/*
 * 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;


/**
 * A robot that implements BorderSentry is a robot type used for keeping other robots away from the borders,
 * i.e. guarding the borders in order to prevent "wall crawlers".
* Robots that implement BorderSentry have 400 extra life/energy (500 in total), but is placed at the border * of the battlefield when the game is started.
* Border sentry robots cannot move away from the border area, and they can only make damage to robots that * are moving into the border area. The size of the border area is determined by the * {@link BattleRules#getSentryBorderSize() battle rules}.
* This type of robot is intended for use in battles where robots should be forced away from the borders * in order to prevent "wall crawlers".
* Border sentry robots does not get scores, and will not occur in the battle results or rankings. * * @see BattleRules#getSentryBorderSize() * @see JuniorRobot * @see Robot * @see AdvancedRobot * @see TeamRobot * @see RateControlRobot * @see Droid * * @author Flemming N. Larsen (original) * * @since 1.9.0.0 */ public interface BorderSentry {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy