fr.umlv.botbattle
Interface GameInfo

All Superinterfaces:
BotContext.Info

public interface GameInfo
extends BotContext.Info

Game informations.

Version:
1.0
Author:
remi
See Also:
BotContext.infoTypes(), BotContext.info(Class)

Method Summary
 List<? extends Bot> getAllAliveBots()
          Returns all alive bots from the same army that the current bot.
 int getInitialdBotNumber()
          Returns the initial number of bot started by the game.
 long getTourTime()
          Returns the time of a tour in milliseconds.
 boolean isAlive()
          Return true if the current bot is alive.
 

Method Detail

getAllAliveBots

List<? extends Bot> getAllAliveBots()
                                    throws DeadBotException
Returns all alive bots from the same army that the current bot.

Returns:
a read-only list of bots of the same army that the current bot.
Throws:
DeadBotException - if the current bot is dead.
See Also:
isAlive()

isAlive

boolean isAlive()
Return true if the current bot is alive.

Returns:
true if the current bot is alive, false else.
See Also:
getAllAliveBots()

getInitialdBotNumber

int getInitialdBotNumber()
Returns the initial number of bot started by the game.

Returns:
the initial number of bot.

getTourTime

long getTourTime()
Returns the time of a tour in milliseconds.

Returns:
the time of a tour.