robocode.robotinterfaces
Interface ITransformable

All Superinterfaces:
ITransformablePeer
All Known Subinterfaces:
IRobotSnapshot, IShipSnapshot

public interface ITransformable
extends ITransformablePeer

Defines methods that are required by the AdvancedCollision class.

Since:
1.8.3 Alpha 1
Version:
0.1
Author:
Thales B.V. / Jiri Waning

Method Summary
 Rectangle2D getBoundingBox()
          Get the bounding box of the robot.
 boolean isAdvancedRobot()
          Checks if this robot is an isAdvancedRobot.
 boolean isDroid()
          Checks if this robot is a Droid.
 boolean isInteractiveRobot()
          Checks if this robot is an InteractiveRobot.
 boolean isJuniorRobot()
          Checks if this robot is a JuniorRobot.
 boolean isPaintRobot()
          Checks if this robot is an IPaintRobot or is invoking getGraphics()
 boolean isShip()
          Checks if this robot is an isShip.
 
Methods inherited from interface robocode.robotinterfaces.ITransformablePeer
getBattleFieldHeight, getBattleFieldWidth, getBodyHeading, getX, getY
 

Method Detail

getBoundingBox

Rectangle2D getBoundingBox()
Get the bounding box of the robot.

Returns:
The bounding box of the robot as a Rectangle2D.

isDroid

boolean isDroid()
Checks if this robot is a Droid.

Returns:
true if this robot is a Droid; false otherwise.

isJuniorRobot

boolean isJuniorRobot()
Checks if this robot is a JuniorRobot.

Returns:
true if this robot is a JuniorRobot; false otherwise.

isInteractiveRobot

boolean isInteractiveRobot()
Checks if this robot is an InteractiveRobot.

Returns:
true if this robot is a InteractiveRobot; false otherwise.

isPaintRobot

boolean isPaintRobot()
Checks if this robot is an IPaintRobot or is invoking getGraphics()

Returns:
true if this robot is a painting; false otherwise.

isAdvancedRobot

boolean isAdvancedRobot()
Checks if this robot is an isAdvancedRobot.

Returns:
true if this robot is a isAdvancedRobot; false otherwise.

isShip

boolean isShip()
Checks if this robot is an isShip.

Returns:
true if this rboot is a ship; false otherwise.


Copyright © 2015 Robocode. All Rights Reserved.