robocode
Class MineHitMineEvent
java.lang.Object
robocode.Event
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MineHitMineEvent
public MineHitMineEvent(Mine mine,
Mine hitMine)
- Called by the game to create a new
MineHitMineEvent
.
- Parameters:
mine
- your mine that hit another minehitMine
- the mine that was hit by your mine
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.