|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutils.BotInfoMap
Map for listing bot infos
Constructor Summary | |
BotInfoMap()
Default constructor for BotInfoMap |
Method Summary | |
boolean |
containsInfo(java.lang.String botName)
Check if map contains info about a robot |
BotInfo |
getInfo(java.lang.String botName)
Get info about a robot (if present) |
BotInfo[] |
getInfoArray()
|
java.lang.String[] |
getNamesArray()
|
BotInfo |
getNearestBot(robocode.TeamRobot owner,
boolean enemy,
double maxEnergy,
long maxInfoAge)
Returns nearest BotInfo according to certain criteria |
boolean |
removeInfo(java.lang.String botName)
Removes BotInfo if present |
java.lang.String |
toString()
|
boolean |
updateInfo(BotInfo bot,
long time)
Update info regarding a bot |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BotInfoMap()
Method Detail |
public BotInfo getInfo(java.lang.String botName)
botName
- Desired info robot name
public boolean containsInfo(java.lang.String botName)
botName
- Desired bot name
public boolean updateInfo(BotInfo bot, long time)
bot
- New BotInfotime
- BotInfo taking time
public boolean removeInfo(java.lang.String botName)
botName
- BotInfo name to be removed
public BotInfo[] getInfoArray()
public java.lang.String[] getNamesArray()
public BotInfo getNearestBot(robocode.TeamRobot owner, boolean enemy, double maxEnergy, long maxInfoAge)
owner
- Owner robotenemy
- Flag to set enemy/friend searchingmaxEnergy
- Max energy allowedmaxInfoAge
- Min info freshness
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |