robocode
Class MineHitMineEvent

java.lang.Object
  extended by robocode.Event
      extended by robocode.MineHitMineEvent
All Implemented Interfaces:
Serializable, Comparable<Event>

public class MineHitMineEvent
extends Event

This event is sent to onMineHitMine when one of your mines has hit another mine.

Author:
Thales B.V. / Thomas Hakkers (original) Figured I'd add you in the credits, since most of it is copied from BulletHitBulletEvent, Mathew A. Nelson (contributor), Flemming N. Larsen (contributor)
See Also:
Serialized Form

Constructor Summary
MineHitMineEvent(Mine mine, Mine hitMine)
          Called by the game to create a new MineHitMineEvent.
 
Method Summary
 Mine getHitMine()
          Returns the mine that was hit by your mine.
 Mine getMine()
          Returns your mine that hit another mine.
 
Methods inherited from class robocode.Event
compareTo, getPriority, getTime, setPriority, setTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MineHitMineEvent

public MineHitMineEvent(Mine mine,
                        Mine hitMine)
Called by the game to create a new MineHitMineEvent.

Parameters:
mine - your mine that hit another mine
hitMine - the mine that was hit by your mine
Method Detail

getMine

public Mine getMine()
Returns your mine that hit another mine.

Returns:
your mine

getHitMine

public Mine getHitMine()
Returns the mine that was hit by your mine.

Returns:
the mine that was hit


Copyright © 2015 Robocode. All Rights Reserved.